On Monday, 23 July 2012 21:05:54 UTC+1, Lloyd Dube wrote: > > 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. > > > Yes. This is what formsets are for. -- DR.
-- 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-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.