Robert Slotboom wrote: > > sorted(Category.objects.all(), key=Category.get_absolute_url) > > This is a very nice approach! > Although, shouldn't these "get_absolute_url" calls be followed by () ?
Nope! Python will call it for you. The good thing is it will only call it once per item instead of once per comparison! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

