Skip to content

Instantly share code, notes, and snippets.

View philiptzou's full-sized avatar

Philip Tzou philiptzou

  • Stanford University
View GitHub Profile
@roadsideseb
roadsideseb / edit.py
Created April 9, 2013 08:42
MultiFormView for handling multiple forms in a Django CBV with a little more ease...
"""
The following mixins and views are borrowed and adapted from the following
gist:
https://gist.github.com/michelts/1029336
"""
from functools import partial
from django.views.generic.base import TemplateResponseMixin
from django.views.generic.edit import ProcessFormView, FormMixin