Skip to content

Instantly share code, notes, and snippets.

@ashok-raavi
ashok-raavi / gist:414009
Created May 26, 2010 03:10
creating django formset with form that takes parameters
from django import forms
class FooForm(forms.Form):
def __init__(self, arg1, *args, **kwargs):
self.arg1 = arg1
super(FooForm, self).__init__(*args, **kwargs)
# form fields here
# define the custom formset here