Re: Views in django
On Sun, Feb 5, 2012 at 1:33 AM, Peter of the Norse
<RahmCoff+goo@radio1190.org> wrote:
> You should look into making a foreign key relationship if there actually is one. That way you can just annotate the the sums.
Opted for the same now.
> Otherwise you should calculate the sum in the view (NOT the template) and add it to the client. Python allows you to add any value you >want to any object.
>
Thank you for your suggestions. :-)
--
Sandeep Kaur
E-Mail: mkaurkhalsa@gmail.com
Blog: sandymadaan.wordpress.com
--
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