#29669: admin.E033 incorrectly raised when adding a calculated field in the 'ordering' tuple of a ModelAdmin -------------------------------------+------------------------------------- Reporter: Javier Abadia | Owner: Hasan Miranda | Ramezani Type: Bug | Status: assigned 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 -------------------------------------+------------------------------------- Changes (by Hasan Ramezani):
* owner: nobody => Hasan Ramezani * status: new => assigned Comment: @Carlton I can prepare a PR to change `ModelAdmin.ordering` to accept admin method. but it is a little bit complicated. What is your opinion about to change `ModelAdmin.ordering` to accept admin method `admin_order_field`. for example ordering in the above example should change like this: `ordering = ('name', '_blog_count') ` -- Ticket URL: <https://code.djangoproject.com/ticket/29669#comment:3> 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.3c2425b9e33ed56361c262c235c7b84d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.