Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed get_instance() return val #842

Merged
merged 1 commit into from Oct 2, 2018

Conversation

akulakov
Copy link
Contributor

When import_id_fields is empty, get_instance() should return None. Previously it would return an object if queryset contained a single object -- qs.get() with no args returns an obj for queryset of length=1.

When `import_id_fields` is empty, `get_instance()` should return None. Previously it would return an object if queryset contained a single object -- qs.get() with no args returns an obj for queryset of length=1.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 92.196% when pulling 0648e2a on akulakov:patch-1 into 54232db on django-import-export:master.

@bmihelac
Copy link
Member

bmihelac commented Oct 2, 2018

Looks good to me. Failing test is related to #844

@bmihelac bmihelac self-assigned this Oct 2, 2018
@bmihelac bmihelac merged commit 55e96c3 into django-import-export:master Oct 2, 2018
@bmihelac
Copy link
Member

bmihelac commented Oct 2, 2018

thanks @akulakov!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants