I am trying to get all the values from 'tail_number' in the form data
that gets passed to a template...

form.data (printed in view before response is sent back):
<MultiValueDict: {'installation_date_end': [''], 'sub_area': ['13-1'],
'tail_number': ['1', '2', '3'], ... }>

I know that if I want access to the tail numbers in a view I can just
do this:
form.data.getlist('tail_number')

I have tried a number of things like:

{% form.tail_number %}

and

{% for tn in form.data.tail_number %}
    {{ tn }}
{% endfor %}

I always get '3' since I am just getting back a string.

Does anyone know how to do this?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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