Opened 18 years ago

Closed 18 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

Description

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: http://127.0.0.1:8000/admin/backend/terminal/add/
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/init.py in getitem, line 150

Change History (1)

comment:1 by smurf@…, 18 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