﻿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
29700	Document ModelAdmin.autocomplete_view() and AutocompleteJsonView (as customisation point).	David W. Lloyd	Alexandru Balan	"Reference: https://code.djangoproject.com/ticket/29010#comment:7

The new autocomplete view uses whatever ordering the ModelAdmin specifies, but most of the time you'd want autocomplete to be alphabetized so that typeahead suggestions make more sense and can be scanned visually. My particular use case is that I want certain admins to default to showing the most recently edited objects, but this sort order makes no sense for autocomplete views in lookups from related object change forms. 

This seems like a common enough use case to warrant built-in decoupling of sort order for autocomplete view from ModelAdmin's standard ""ordering"" field.

Proposed improvement/feature would be an ""autocomplete_ordering"" field and corresponding ""get_autocomplete_ordering"" method which default to using the ""ordering"" but can be easily overridden, readily providing decoupling when needed."	Cleanup/optimization	closed	Documentation	dev	Normal	wontfix		Johannes Maron	Someday/Maybe	0	0	0	0	0	0
