#18898: has_changed fails to compare model instance with primary key ------------------------+------------------------------------ Reporter: adsva | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 1.4 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------+------------------------------------
Comment (by tuxcanfly): Trying a fix by updating has_changed to check on both string and python values. Added test for ModelMultipleChoiceField as well. Verified that all tests pass on sqlite. Needs review: https://github.com/django/django/pull/660 -- Ticket URL: <https://code.djangoproject.com/ticket/18898#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.