Commit ff36cbe4 by Martin Hill

same logic, more pythonic

parent bac6f1fc
...@@ -92,7 +92,7 @@ def _get_fields(opts): ...@@ -92,7 +92,7 @@ def _get_fields(opts):
def _get_to_field(field): def _get_to_field(field):
return field.to_fields[0] if hasattr(field, 'to_fields') and field.to_fields else None return getattr(field, 'to_fields', None) and field.to_fields[0]
def _get_forward_relationships(opts): def _get_forward_relationships(opts):
......
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