Commit fc06ece1 authored by Serge S. Koval's avatar Serge S. Koval

Fixed nullable columns

parent 1843600f
...@@ -88,7 +88,7 @@ class AdminModelConverter(ModelConverterBase): ...@@ -88,7 +88,7 @@ class AdminModelConverter(ModelConverterBase):
# Contribute model-related parameters # Contribute model-related parameters
if 'allow_blank' not in kwargs: if 'allow_blank' not in kwargs:
kwargs['allow_blank'] = local_column.nullable, kwargs['allow_blank'] = local_column.nullable
if 'query_factory' not in kwargs: if 'query_factory' not in kwargs:
kwargs['query_factory'] = lambda: self.session.query(remote_model) kwargs['query_factory'] = lambda: self.session.query(remote_model)
......
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