

def default(self, column):
    '\n        Return field default for given column.\n\n        :param column: SQLAlchemy Column object\n        '
    if (column.default and is_scalar(column.default.arg)):
        return column.default.arg
    elif (not column.nullable):
        return self.meta.default

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