On Sun, Feb 5, 2012 at 1:33 AM, Peter of the Norse
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
>
You should look into making a foreign key relationship if there actually is
one. That way you can just annotate the the sums. 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.
On Feb 3, 2012
Calculate in view, in template should print values . Can group it in dict
i think.
On Feb 3, 2012 10:39 PM, "Sandeep kaur" wrote:
> On Fri, Feb 3, 2012 at 7:52 PM, Weldan wrote:
> > Entries.objects.count()
> >
> That will be applicable if I want to his for only 1 table's entry.
> But here I ha
On Fri, Feb 3, 2012 at 7:52 PM, Weldan wrote:
> Entries.objects.count()
>
That will be applicable if I want to his for only 1 table's entry.
But here I have views as :
cd = form.cleaned_data
name_and_address = cd['name_and_address']
Entries.objects.count()
On Feb 3, 2012 10:12 PM, "Sandeep kaur" wrote:
> Can I apply some operations on the views ( of database) that are
> created by me? Eg: to do sum of some filtered entries. If yes, then
> how?
>
> --
> Sandeep Kaur
> E-Mail: mkaurkha...@gmail.com
> Blog: sandymadaan.wordpre
5 matches
Mail list logo