﻿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
32615	Autocomplete does not honor model ordering	Matija Kolarić	nobody	"Hi,
thanks for all the great work with Django, and especially Admin.

As said, autocomplete does not honor model ordering if admin ordering is not specified.

I would suggest something along these lines in BaseModelAdmin:


{{{
    def get_ordering(self, request):
        """"""
        Hook for specifying field ordering.
        """"""
        return self.ordering or self.model._meta.ordering
}}}

Of course, this suggestion does not cover probable edge cases (no model,  no ordering, etc). But, at this point, I guess, the question is whether this would be better, as there might be some background reason not to do it this way."	Cleanup/optimization	closed	contrib.admin	3.1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
