class DynamicForm(Form):

    def __init__(self, *args, **kwargs):
        my_arg = kwargs.pop('my_arg')
super(DynamicForm, self).__init__(*args, **kwargs)
passing arguments to a dynamic form in django