On Sep 15, 6:22 pm, Michael Stevens <mpsteven...@gmail.com> wrote: > Hi. > > I'm creating a formset of forms using formset_factory. > > It's all working nicely, but I'd like to pass some values into the > forms to use as the choices for one of the fields. > > Is there a way to do this? As far as I can tell the formset_factory > takes over the creation of the form and I can't see a way to pass my > own data in. > > Michael
You can use the form parameter to formset_factory to pass in a customised Form subclass that includes your overwritten __init__ method. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---