On Thu, Feb 10, 2011 at 9:10 AM, hank23 <hversem...@stchas.edu> wrote:
> So when I go to build the entries for my drop down list then I would
> iterate over the query results like you suggested and at that point
> where I iterate over the results then I can also set the different
> select option attributes (html option tag attributes - value and
> visible-choice)  to the various values contained in each object
> returned in the queryset. Right?

I don't see why not. Of course, I don't see what your models look
like, either, but you should be able to do something like this:

<select>
{% for obj in my_raw_queryset %}
<option value="{{ obj.value }}">{{ obj.visible_choice }}</option>
{% endfor %}
</select>

-- 
Regards,
Ian Clelland
<clell...@gmail.com>

-- 
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