Commit 02084e12 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #1241 from pawl/remove_unnecessary_indention

remove unnecessary indention in form.py convert
parents 624b0d8e 03a2bc6a
...@@ -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