#29669: admin.E033 incorrectly raised when adding a calculated field in the 'ordering' tuple of a ModelAdmin -------------------------------------+------------------------------------- Reporter: Javier Abadia | Owner: nobody Miranda | Type: Bug | Status: new Component: contrib.admin | Version: 2.1 Severity: Normal | Resolution: Keywords: admin, ordering | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Javier Abadia Miranda): maybe this helps: adding the field to readonly_fields works ok, maybe the valid field check should be similar {{{ readonly_fields = ('name', 'blog_count') # passes all checks }}} -- Ticket URL: <https://code.djangoproject.com/ticket/29669#comment:2> 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/065.f56d67d1ee53fd63715d1778ebb46505%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.