ordering inside regroup
Hi, I'm new to django that's why the tittle may says something stupid.
I was asked to write small application to group products with
producers. OK now the problem. Problem is ordering. I use "regroup" to
make:
Producer 1
product 1
product 2
Producer 2
product 1
Producer 3
product 1
but I have to order this "structure" by the date of added product
( newer first ) so if I add to this : product 2 for Producer 3 it
should look like this :
Producer 3
product 1
product 2
Producer 1
product 1
product 2
Producer 2
product 1
so, is it possible to do something like this with "regroup" ?
I add that in my model, fields with DateTime are only in product.
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home