#10622 closed (fixed)
List editable breaks with model inheritance
| Reported by: | oyvind | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Keywords: | list_editable inheritance | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I register a model in the adminsite that is inherited from another model with list_editable on some fields, then add a entry. When I am redirected to the change_list I get a traceback about a missing field in the form.
http://dpaste.com/18906/ - traceback
http://dpaste.com/18895/ - example app
Attachments (2)
Change History (7)
comment:1 by , 17 years ago
| milestone: | → 1.1 |
|---|
comment:2 by , 17 years ago
by , 17 years ago
| Attachment: | inheritance-changelist.diff added |
|---|
comment:3 by , 17 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
by , 17 years ago
| Attachment: | inheritance-changelist.2.diff added |
|---|
Note:
See TracTickets
for help on using tickets.
In file /home/oyvind/code/django/contrib/admin/templatetags/admin_list.py
line 240, in items_for_result
Changed to
name is used here:
http://code.djangoproject.com/browser/django/trunk/django/forms/models.py#L444