Misleading error message for field in list_editable and not in list_display
Assume we have model with example filed something
.
Now, creating admin page, if we place something
in list_editable
, but NOT in list_display
we have error like this:
SystemCheckError: System check identified some issues:
ERRORS:
<class 'someapp.admin.SomeModel'>: (admin.E122) The value of 'list_editable[0]' refers to 'something', which is not an attribute of 'someapp.SomeModel'.
Error message suggests that field something
does not exist in model, but in fact it DOES exist in model and DOES NOT exist in admin's list_display
, so the explanation is not true and leads to confusion.
Change History
(6)
Easy pickings: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
patch proposal:
https://github.com/django/django/pull/5135