Opened 9 years ago

Closed 9 years ago

#3150 closed defect (invalid)

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

Reported by: smurf@… Owned by: adrian
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: UI/UX:


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 Changed 9 years ago by smurf@…

  • Resolution set to invalid
  • Status changed from new to closed

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