#18607: ModelForms do not recognize DateTimeFields with auto_now=True
------------------------+--------------------------------------
     Reporter:  Adys    |                    Owner:  nobody
         Type:  Bug     |                   Status:  closed
    Component:  Forms   |                  Version:  1.4
     Severity:  Normal  |               Resolution:  invalid
     Keywords:          |             Triage Stage:  Unreviewed
    Has patch:  0       |      Needs documentation:  0
  Needs tests:  0       |  Patch needs improvement:  0
Easy pickings:  0       |                    UI/UX:  0
------------------------+--------------------------------------

Comment (by akaariai):

 It kind of is: the auto_now documentation says that setting it to true
 implies editable=False, and editable is documented as:

 > If False, the field will not be editable in the admin or via forms
 automatically generated from the model class. Default is True.

 Now, the editable documentation could perhaps be a little cleaner - it
 doesn't explicitly state the field is totally removed from the form, just
 that it is not editable.

 As for regressions, I don't think there are any guarantees for pre 1.0
 versions.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18607#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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to