Opened 18 years ago
Closed 18 years ago
#3150 closed defect (invalid)
The admin interface doesn't understand non-editable DateTime fields
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
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.