I created a couple of mixins for a project that might help you.  See this 
gist: https://gist.github.com/dashdrum/03858d79ddfd9bba44d6

Pretty easy to use.  Here's an example Create view:

class RegistrationView(FormsetCreateMixin,CreateView):
    template_name = 'registration/registration_form.html'
    model = RegistrationMaster
    form_class = RegistrationForm
    detail_form_class = RegDetailFormSet


The mixin creates a new class variable: detail_form_class.  Set this in the 
view class declaration to point to your formset.  

I haven't tested this beyond the one project, so please tread carefully.  I 
hope this can at least get you moving in the right direction.



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e4ddc6d2-b38d-4308-a424-949ebeb39996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to