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
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
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
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
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
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
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
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,
8 matches
Mail list logo