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

Fix incorrect has_changed result for AutoCompleteSelectField that has not been filled in. #152

Merged
merged 2 commits into from
Jan 18, 2016

Conversation

vil-s
Copy link

@vil-s vil-s commented Jan 14, 2016

A fix for empty inlines incorrectly showing as "changed", thus preventing form submissions.

The solution proposed in this PR is very much the same as ModelChoiceField.has_changed.

As @crucialfelix mentioned in #142, it would be more correct for AutoCompleteSelectField to rather inherit from ModelChoiceField, and probably by extension, AutoCompleteSelectMultipleField should inherit from ModelMultipleChoiceField.

Changing the fields' inheritance would have far-reaching consequences and will take longer to implement, so this PR only deals with the immediate issue, not the correctness of the class inheritance.

Villiers Strauss added 2 commits January 14, 2016 10:32
… by using a similar solution that `django.forms.models.ModelChoiceField.has_changed` uses.
@crucialfelix
Copy link
Owner

thank you !

crucialfelix added a commit that referenced this pull request Jan 18, 2016
Fix incorrect has_changed result for AutoCompleteSelectField that has not been filled in. Fixes #152  Fixes #142
@crucialfelix crucialfelix merged commit a5e4706 into crucialfelix:develop Jan 18, 2016
@vil-s
Copy link
Author

vil-s commented Jan 18, 2016

Cool, happy to help :)

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.

2 participants