#20781: Regression in form field _has_changed for fields with
show_hidden_initial=True
----------------------------+------------------------
     Reporter:  timo        |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Forms       |    Version:  1.6-beta-1
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+------------------------
 Following [892bc91cb0] (affects 1.6.X), the `date_joined` and `last_login`
 fields always appear as "Changed" when editing a user in the admin. It
 looks like it affects fields with callable defaults. In this case,
 `django.forms.fields.Field._has_changed` returns `False` because
 `initial_value` is a string and `data_value` is a `datetime`.

 I discovered this working on #19019, the
 [https://github.com/django/django/pull/1380 PR] contains some TODOs which
 could be used as a regression test once this is fixed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20781>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.f3c3db78ae65022bf6c10ec14fb206c7%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to