Re: what's wrong with this if statement structure

2010-03-25 Thread creecode
Hello Bobby, On Mar 25, 9:42 am, Bobby Roberts wrote: > is there a quick way to do something like this in 1.1? You could do the comparison at the view level and then set an attribute on your object with the result. Toodle-lo.. creecode -- You received this message because

Re: what's wrong with this if statement structure

2010-03-25 Thread Tom Evans
On Thu, Mar 25, 2010 at 4:42 PM, Bobby Roberts wrote: > thanks for your quick reply... is there a quick way to do something > like this in 1.1? > Import the smart_if as a standalone, separate tag: http://www.djangosnippets.org/snippets/1350/ Cheers Tom -- You received this message because yo

Re: what's wrong with this if statement structure

2010-03-25 Thread Bobby Roberts
thanks for your quick reply... is there a quick way to do something like this in 1.1? On Mar 25, 12:40 pm, Karen Tracey wrote: > On Thu, Mar 25, 2010 at 12:28 PM, Bobby Roberts wrote: > > sorry - > > > it is in the template an the traceback thrown is: > > > 'if' statement improperly formatted

Re: what's wrong with this if statement structure

2010-03-25 Thread Karen Tracey
On Thu, Mar 25, 2010 at 12:28 PM, Bobby Roberts wrote: > sorry - > > it is in the template an the traceback thrown is: > > 'if' statement improperly formatted > You are trying to use a feature added for 1.2 (smart if) with 1.1.X level code. Karen -- You received this message because you are s

Re: what's wrong with this if statement structure

2010-03-25 Thread James Bennett
On Thu, Mar 25, 2010 at 11:28 AM, Bobby Roberts wrote: > it is in the template an the traceback thrown is: > > 'if' statement improperly formatted The documentation states: > New in Django Development version. > if tags may also use the operators ==, !=, <, >, <=, >= and in which work as > foll

Re: what's wrong with this if statement structure

2010-03-25 Thread Bobby Roberts
sorry - it is in the template an the traceback thrown is: 'if' statement improperly formatted On Mar 25, 12:11 pm, Tom Evans wrote: > On Thu, Mar 25, 2010 at 4:09 PM, Bobby Roberts wrote: > > 92     {%ifequal au.ReservePrice 0%} > > 93           None > > 94    {%else%} > > 95           {%if

Re: what's wrong with this if statement structure

2010-03-25 Thread Tom Evans
On Thu, Mar 25, 2010 at 4:09 PM, Bobby Roberts wrote: > 92     {%ifequal au.ReservePrice 0%} > 93           None > 94      {%else%} > 95           {%if au.ReservePrice > au.currentbid %}Met{%else%}Not > Met{%endif%} > 96      {%endifequal%} > Since you haven't said what goes wrong with it, I will

what's wrong with this if statement structure

2010-03-25 Thread Bobby Roberts
92 {%ifequal au.ReservePrice 0%} 93 None 94 {%else%} 95 {%if au.ReservePrice > au.currentbid %}Met{%else%}Not Met{%endif%} 96 {%endifequal%} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,