#25267: Misleading error message for field in list_editable and not in list_display -------------------------------+---------------------------------- Reporter: michalwerner | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 1.8 Severity: Normal | Keywords: admin, error message Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+---------------------------------- 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. -- Ticket URL: <https://code.djangoproject.com/ticket/25267> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/055.5fe73b1d9a87941e91f2d7cb50998a53%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.