hello there, thanks for your help. by the way, i've been wondering what it means by '...regardless of how many fields are in "ordering" the admin site uses only the first field'.
the "first field" in my example is the 'lastname' although it does not seem the data are ordered by the field. whenever i make changes to the players, the player most recently edited player always goes to the bottom of the list. is there any way to fix this? thanks very much. On Mar 27, 8:56 pm, Gilhad <[EMAIL PROTECTED]> wrote: > On Tuesday 27 March 2007 04:28,damacywrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---

