Sorted works great but I have problems using it im my custom manager. I'm trying and trying but I can't figure out how to handle the following situation.
class SortedTestcatManager(models.Manager): def get_query_set(self): QS = super(SortedTestcatManager, self).get_query_set() SQS = sorted(QS, key=self.model.get_absolute_url) return SQS >> sorted = Testcat.sorted_objects.all() >> sorted [<Testcat: /nope/>] >> sorted.filte(title="nope") AttrbuteError: 'list' object has no attribute 'filter' Because I cant handle my prefered sorting in a query, I need to sort the result afterward. I could define some other functions in the custom manager to handle all and filter But this isn't a solution: allcats = Cat.sorted_objects.all() allcats.filter(var='val') << Isn't there a way to grap the result from the QS, sort it and place it back? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---