Commit 8ced1725 authored by Serge S. Koval's avatar Serge S. Koval

Minor style corrections

parent 561f3003
......@@ -38,8 +38,8 @@ def is_inherited_primary_key(prop):
:return: Boolean
:raises: Exceptions as they occur - no ExceptionHandling here
"""
return len([column for column in prop.columns if column.primary_key]) == len(prop.columns) and \
len([column for column in prop.columns if column.foreign_keys]) == len(prop.columns)-1
return (len([column for column in prop.columns if column.primary_key]) == len(prop.columns) and
len([column for column in prop.columns if column.foreign_keys]) == len(prop.columns) - 1)
def get_column_for_current_model(prop):
"""
......
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