1
You didn’t post the form from which the formset is being built… but assuming all instances of Excursion
are acceptable values, you can simply store the possible field values in a context variable:
# in your view...
context = {}
excursions = Excursion.objects.all()
return render_to_response('your_template.html', context, context_instance = RequestContext(request))
# in your template...
{% for e in excursions %}
{{ e }}
{% endfor %}
Source:stackexchange.com