1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Moved has_changed logic from widget to form field

Refs #16612. Thanks Aymeric Augustin for the suggestion.
This commit is contained in:
Claude Paroz
2013-01-25 20:50:46 +01:00
parent ce27fb198d
commit ebb504db69
14 changed files with 230 additions and 251 deletions

View File

@@ -67,3 +67,9 @@ If you're relying on this feature, you should add
``'django.middleware.common.BrokenLinkEmailsMiddleware'`` to your
:setting:`MIDDLEWARE_CLASSES` setting and remove ``SEND_BROKEN_LINK_EMAILS``
from your settings.
``_has_changed`` method on widgets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you defined your own form widgets and defined the ``_has_changed`` method
on a widget, you should now define this method on the form field itself.