Commit 1a8cdada authored by Paul Brown's avatar Paul Brown

SQLA: Don’t require fields that have a server_default value

parent 6719a48e
......@@ -209,6 +209,7 @@ class AdminModelConverter(ModelConverterBase):
not column.nullable
and not isinstance(column.type, optional_types)
and not column.default
and not column.server_default
):
kwargs['validators'].append(validators.InputRequired())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment