Cheers, have a look at the Meta options order_with_respect_to and ordering: http://www.djangoproject.com/documentation/model_api/#order-with-respect-to
Hope it helps, G On 10/24/06, John Lenton <[EMAIL PROTECTED]> wrote: > > Hi all. > I've got an app where I have a table of nodes, and a table of directed > edges between those nodes. I.e, > > -----8<-- > class Node(models.Model): > name = models.CharField(maxlength=20, core=True, blank=False) > def __str__(self): > return self.name > > class Admin: > pass > > class Path(models.Model): > source = models.ForeignKey(Node, core=True, related_name='source_set') > sink = models.ForeignKey(Node, core=True, related_name='sink_set') > > def __str__(self): > return "from %s to %s" % (self.source, self.sink) > > class Admin: > list_display = ['source', 'sink'] > -->8----- > > that works very nicely. Or does it? The link on the sink column in the > admin interface sorts by source :( > > What am I missing? Oh, python2.4, django from svn, linux. > > -- > John Lenton ([EMAIL PROTECTED]) -- Random fortune: > The trouble with a lot of self-made men is that they worship their creator. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

