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

Fixed #22030 -- Don't assume that all fields have a swappable_setting at... #2270

Merged
merged 1 commit into from Feb 17, 2014

Conversation

bmispelon
Copy link
Member

...tribute.

@@ -233,7 +233,8 @@ def _detect_changes(self):
field=field,
)
)
swappable_setting = new_apps.get_model(app_label, model_name)._meta.get_field_by_name(field_name)[0].swappable_setting
new_field, _, _, _ = new_apps.get_model(app_label, model_name)._meta.get_field_by_name(field_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer adding a [0] instead of _, _, _

andrewgodwin added a commit that referenced this pull request Feb 17, 2014
Fixed #22030 -- Don't assume that all fields have a swappable_setting at...
@andrewgodwin andrewgodwin merged commit 3c547a4 into django:master Feb 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants