On Tuesday 27 March 2007 04:28, damacy wrote:
> hi, there.
>
> i have a problem with the django admin site.
>
> i have a table called 'players' which consists of the following
> fields;
> 'lastname', 'firstname' and 'lastmodified'.
> and i have defined the ordering of the table by
> ordering = ['lastname', 'firstname'].
> (i.e. 'lastname' and then 'firstname' in case there exist more than 2
> players with the same 'lastname'.)
>
> however, if i edit a player then the last modified player goes down to
> the bottom of the list
> *regardeless* of his 'lastname' or 'firstname'. i don't know why this
> happens because
> i have not specified 'lastmodified' in the ordering. all i want to do
> is to make this ordering consistant
> with the 'lastname' and 'firstname' only.
>
> has anyone got a clue about this?
>
> thank you very much in advance.
>

I am afraid, that you want more than you can get.

The model-api.txt in section ``ordering`` states on the end:

    Note that, regardless of how many fields are in ``ordering``, the admin
    site uses only the first field.


-- 
Zdravi
     Gilhad
     [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to