Are you using django forms?
Should be pretty straightforward once you have the input nicely formatted to just count the number of fields that have been filled in.
Hi all,
I am not using django forms for this. I did think along the lines of doing the following:
- implement the Question form, override __init__ in the model to return answers for that question,
- instantiate a form for each question, set model=whatever_model_in_current_loop and append it to a list,
- in the template, render them out
... but ...
How would I then access the forms collection in my view, say, from request.POST?
I think I may be trying to reinvent a wheel here.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1Y1zt0RYaLMJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.