On Nov 12, 2:30 pm, Bobo <[EMAIL PROTECTED]> wrote: > Hi everyone, > > In my admin module I've some drop-down lists that extract data from my > database but the thing is that it sort the list from the Database ID > and not alphabetically, starting with A and continuing. > > I've search the Django API and Admin docs for a solutions but it seem > that I only find something about a fieldsets (http:// > docs.djangoproject.com/en/dev/ref/contrib/admin/) and list_filter and > List_display. > > Am I on the right track here or is there a easy method to change the > sorting filter in the admin module of Django??? > > Regards > Bobo
Use the ordering attribute of the model's inner Meta class. See http://docs.djangoproject.com/en/dev/ref/models/options/#ordering -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

