I'm working on a photo tagging app where the admin specifies
categories (such as people, places, etc) and the users can input tags
for different pictures. On the page, each category is rendered as an
input (with some pretty titles and divs) on a single tagging form. For
text inputs, I'd like to have already existing tags displayed above
the input field (it'll be different for select boxes, but I'll figure
that out later). To make it easier to display, I'd like to store the
data as an attribute of the field, and have the output of that field
be the formatted html, so that I can do something like:

{% for field in form %}
{{ field.tags }}
{% endfor %}

and for each field, an unordered list of tags will be displayed (or
something like that).

My question is: what do I do to my Form subclass (called TagForm) to
store data and rendering data in each field? Thanks.
--~--~---------~--~----~------------~-------~--~----~
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