On 1/18/07, conrad22 <[EMAIL PROTECTED]> wrote:
Deryck, I thought it ought to be along those lines, but I can't seem to
get it working.
I'm trying to use:
org_name = models.CharField ('Organisation', maxlength = 200)
class Meta:
ordering = 'org_name',
But still sorts chronologically...?
The ordering param expects a tuple or list, so either of the following
are correct:
ordering = ['org_name']
ordering = ('org_name',)
Note the comma inside the tuple.
Cheers,
deryck
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---