﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17522	ModelAdmin.ordering validation too strict	Sebastian Goll	nobody	"`ModelAdmin.ordering` checks whether all elements are the names of valid fields on the model. This is too strict as we can also define methods on the model or admin class and set `admin_order_field`. In fact, if such columns are used in `list_display` they are sortable by clicking on the corresponding column in the change list view.

The attached patch relaxes the admin validation so that the names of such methods are allowed for the default sorting. It also adds several tests to check this relaxed validation."	Bug	new	contrib.admin	dev	Normal		admin, validation, ordering, strict	Sebastian Goll k@… Sarah Boyce Ülgen Sarıkavak	Accepted	1	0	0	1	0	0
