def model_form(*args, **kwargs): """Returns form class for model. """ if not 'base_class' in kwargs: kwargs['base_class'] = Form return mf(*args, **kwargs)
def model_form(*args, **kwargs): # model db.session bound obj instance if not 'base_class' in kwargs: kwargs['base_class'] = Form return mf(*args, **kwargs)