Opened 17 years ago

Closed 17 years ago

#3150 closed defect (invalid)

The admin interface doesn't understand non-editable DateTime fields

Reported by: smurf@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


update_frage = models.DateTimeField(null=True, editable=False)

results in

KeyError at /admin/backend/terminal/add/
"Could not find Formfield or InlineObjectCollection named 'update_frage_date'"
Request Method: GET
Request URL:
Exception Type: KeyError
Exception Value: "Could not find Formfield or InlineObjectCollection named 'update_frage_date'"
Exception Location: /usr/lib/python2.4/site-packages/django/forms/ in getitem, line 150

Change History (1)

comment:1 by smurf@…, 17 years ago

Resolution: invalid
Status: newclosed

OK... as per #611, obviously, which I've missed, *any* field isn't rendered when editable=False even if it is included in the Admin.fields list.

=> continue discussion there.

Note: See TracTickets for help on using tickets.
Back to Top