#9928: Ordering of admin.ModelAdmin objects in admin site
---------------------------------------------+------------------------------
Reporter: ruiaf | Owner: badri
Status: assigned | Milestone:
Component: django.contrib.admin | Version: 1.0
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 1 |
---------------------------------------------+------------------------------
Changes (by mathijs):
* needs_better_patch: 0 => 1
* stage: Accepted => Design decision needed
* needs_tests: 0 => 1
* needs_docs: 0 => 1
Comment:
I think this should be improved as such that we can set an 'index' field
on our ModelAdmin objects and our applications. If it is present this is
used for ordering, if not alphabetical ordering is assumed. This index
field is trivial for ModelAdmin objects, but for application it should be
set inside the admin.py file, perhaps like this:
{{{
#...
INDEX = 1
#...
}}}
this way users have full control over ordering inside apps and outside
apps, eg. the index page would look like:
app 1
model 1
model 3
model 4
app 2
model 1
model 2
model 4
model 5
where the number is value of the index property
--
Ticket URL: <http://code.djangoproject.com/ticket/9928#comment:3>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---