Re: Sorting the output of regroup

2012-03-11 Thread het.oosten
> > Sort the list in Python in your view. Its easier to do, easier to test > and easier to maintain. Thank you for the reply. This is indeed the best way. I left the regroup tag completely, and used some nested for loops in the template. Everything works fine now. Rob -- You received this

Re: Sorting the output of regroup

2012-03-10 Thread Andy McKay
> Any idea what is the best way to accomplish this? Sort the list in Python in your view. Its easier to do, easier to test and easier to maintain. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Sorting the output of regroup

2012-03-10 Thread het.oosten
I have a small cms. I have two models, one for Mainmenu items, and one for page with content with a foreignkey to the main menu items: class Mainmenu_items(models.Model): title = models.CharField(max_length=60) mainmenu_order = models.IntegerField(default='99') class