Hi,

I've this model:

class Player(models.Model):
    user = models.ForeignKey(User, blank=True, null=True)
    country = models.ForeignKey(Country)

If I try to ordering Player by "user", don' work:

Player.objects.order_by("user")

I want ordering Player by user.username....


Alfredo

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