>
> 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
> 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
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
3 matches
Mail list logo