On Mon, Jul 20, 2009 at 10:26 PM, sico <allensi...@gmail.com> wrote:

>
> thats cool to know, but not quite what I'm after I don't think.  If
> there was a simple way to display the label, field and any errors all
> at once would be nice otherwise it gets quite cumbersome to be
> repeating that all each time.
>
> Basically what I want to be able to do is to show different fields
> depending on a data value....
>
> e.g.
>
> if field1 = 1 then hide field7 else hide field8


I think you want to look at the different IF tags here:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to