Hi all.
just a question about how to proceed.
when i've to display data direct from the model (the db) one in a page is simple.
what if i want to display aggregate data or some data that needs logic?
i've to do it in the view and add the object to the contex, or it's better to do a custom tag filter?
what if i've a list of objects and for each object i've to compute an aggregate data?
for example i've a list of cars and for each car i want to know how many models exists. if i do in the view, how can i attach the aggregate data (which is a query) to each car? is it better to do with a custom tag filter?
ciao.
--
Stefano
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.
No comments:
Post a Comment