Gustaf,

Awesome thanks.

- Griffin
On Oct 27, 2007, at 2:15 PM, [EMAIL PROTECTED] wrote:

>
> class MyModel(models.Model):
>     ...
>
>     class Meta:
>         ordering = ['name']
>
> /Gustaf
>
> On Oct 27, 8:07 pm, Griffin <[EMAIL PROTECTED]> wrote:
>> Is there any way to customize the drop down lists that appear when
>> editing an object in the admin interface?  I would like to change the
>> order that elements appear.  Instead of sorting by id, I would  
>> like to
>> sort by another property such as name.
>>
>> I've already customized the Admin class within the model itself,  
>> but I
>> can't find any option that allows me to customize how the fields are
>> displayed.
>>
>> Is the only option a custom view?
>>
>> Thanks,
>> Griffin
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to