#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
------------------------+--------------------------------------
Changes (by akaariai):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 It seems this is intentional. The user is not supposed to edit the field,
 and thus it is not present in the form. It seems you can display the field
 with using readonly_fields. [http://stackoverflow.com/questions/10033422
 /cant-display-datefield-on-form-with-auto-now-true]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18607#comment:1>
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