

def __init__(self, form_class):
    '\n        Initializes the form generator\n\n        :param form_class: ModelForm class to be used as the base of generation\n                           process\n        '
    self.form_class = form_class
    self.model_class = self.form_class.Meta.model
    self.meta = self.form_class.Meta
    self.TYPE_MAP.update(self.form_class.Meta.type_map)

dataset/ETHPy150Open kvesteri/wtforms-alchemy/wtforms_alchemy/generator.py FormGenerator.__init__/original