Commit 03a2bc6a authored by Paul Brown's avatar Paul Brown

remove unnecessary indention in form.py convert

parent 5a66f8a4
...@@ -147,9 +147,7 @@ class AdminModelConverter(ModelConverterBase): ...@@ -147,9 +147,7 @@ class AdminModelConverter(ModelConverterBase):
# Check if it is relation or property # Check if it is relation or property
if hasattr(prop, 'direction'): if hasattr(prop, 'direction'):
return self._convert_relation(prop, kwargs) return self._convert_relation(prop, kwargs)
else: elif hasattr(prop, 'columns'): # Ignore pk/fk
# Ignore pk/fk
if hasattr(prop, 'columns'):
# Check if more than one column mapped to the property # Check if more than one column mapped to the property
if len(prop.columns) > 1: if len(prop.columns) > 1:
columns = filter_foreign_columns(model.__table__, prop.columns) columns = filter_foreign_columns(model.__table__, prop.columns)
......
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