id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux
9629 DateField / DateTimeField issues in admin site when using auto_now in field model ctieche nobody "When a DateField or DateTimeField is included in a model, and the auto_now=True or auto_now_add=True option is used, the following message is issued by django when attempting to access the Admin site with that date or datetime. Note that the field must be referenced in a field_sets list:
ImproperlyConfigured: 'MyAdmin.fieldsets[3][1]['fields']' refers to field 'changedwhen' that is missing from the form.
Removing the auto_now option resolves the problem.
If field_sets are not used, the error does not occur, but the date(time) field does not appear on the default admin site. Again, removing the auto_now option solves the problem and the field appears in the auto generated admin site as expected." closed contrib.admin 1.0 invalid Date Unreviewed 0 0 0 0