On Fri, Apr 11, 2008 at 12:10 PM, Chas. Owens <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 11, 2008 at 12:09 PM, Kenneth Gonsalves
>  <[EMAIL PROTECTED]> wrote:
>  snip
>
> >  >> {% if forloop.counter % 2 %}
>  >  >
>  >  > divisibleby
>  >
>  >  http://www.djangoproject.com/documentation/templates/#divisibleby
>  snip
>
>  Alright, call me a moron, but this isn't working.  What am I doing wrong?
>
>  {% if {{ forloop.counter|divisibleby:"2" }} %}
snip

Nevermind, I am a moron, it should be

{% if forloop.counter|divisibleby:"2" %}

Thanks.
-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to