mlavin / django-selectable

Tools and widgets for using/creating auto-complete selection widgets using Django and jQuery UI.
http://django-selectable.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
129 stars 64 forks source link

Update selectable/forms/fields.py #210

Closed marko90b closed 4 years ago

marko90b commented 4 years ago

If selectable field is disabled in forms.py, has_changed() method returns True and form's method has_changed() returns True even if nothing changed. I propose adding 4 lines (31-34), copied from Django's class Field, method has_changed() (https://github.com/django/django/blob/master/django/forms/fields.py, lines 175-178). This fixes unwanted behavior.

mlavin commented 4 years ago

:shipit: