Re: django mathfiters

2018-02-28 Thread sum abiut
e. > > > > *From:* django-users@googlegroups.com [mailto:django-users@ > googlegroups.com] *On Behalf Of *sum abiut > *Sent:* Wednesday, February 21, 2018 4:06 PM > *To:* django-users@googlegroups.com > *Subject:* django mathfiters > > > > > > Hi, > > How to y

Re: django mathfiters

2018-02-27 Thread Peter of the Norse
> > From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On > Behalf Of sum abiut > Sent: Wednesday, February 21, 2018 4:43 PM > To: django-users@googlegroups.com > Subject: Re: django mathfiters > > Thanks for your response. Yes the value was actua

Re: django mathfiters

2018-02-21 Thread sum abiut
o-users@googlegroups.com [mailto:django-users@ > googlegroups.com] *On Behalf Of *sum abiut > *Sent:* Wednesday, February 21, 2018 4:43 PM > *To:* django-users@googlegroups.com > *Subject:* Re: django mathfiters > > > > Thanks for your response. Yes the value was actually None. how to

RE: django mathfiters

2018-02-21 Thread Matthew Pava
@googlegroups.com Subject: Re: django mathfiters Thanks for your response. Yes the value was actually None. how to i display 42 instead of not displaying anything at all. I have try using the if statement to check for the value of c if its None i just display the value of a, and if is not None i add the

Re: django mathfiters

2018-02-21 Thread sum abiut
:06 PM > *To:* django-users@googlegroups.com > *Subject:* django mathfiters > > > > > > Hi, > > How to you a zero in mathfilter > > for example, if the value of c is zero the total is not display. instead > of displaying 42 it display nothing. > > >

RE: django mathfiters

2018-02-21 Thread Matthew Pava
Check the value of b.value. Make sure it isn’t None. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of sum abiut Sent: Wednesday, February 21, 2018 4:06 PM To: django-users@googlegroups.com Subject: django mathfiters Hi, How to you a zero in mathfilter

django mathfiters

2018-02-21 Thread sum abiut
Hi, How to you a zero in mathfilter for example, if the value of c is zero the total is not display. instead of displaying 42 it display nothing. {%for b in pay%} {% with a=42 c=b.value%} {{ a|add:c }} {% endwith %} -- You received this message because you are subscribed to the Google