def get_form_class(self, name, index=0, postfix='Form'):
    form_class_name = ('%s%s' % (type(self).__name__, postfix))
    form_class_dict = {name: self.get_form_field()}
    return type(form_class_name, (forms.Form,), form_class_dict)
def get_form_class(self, name, index=0, postfix='Form'):
    form_class_name = ('%s%s' % (type(self).__name__, postfix))
    form_class_dict = {name: self.get_form_field()}
    return type(form_class_name, (forms.Form,), form_class_dict)