Skip to content

Commit

Permalink
tiny change in structure (better looking)
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 29, 2015
1 parent f84fa75 commit 4ce6ad7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/src/entity_manager/structures.py
Expand Up @@ -496,9 +496,9 @@ def __getattribute__(self, name):
# checks if the value for the attribute name in the class
# does not exists or is not the same as the retrieved value,
# this test ensures that this is not a class level description
# of an entity attribute
if not hasattr(self.__class__, name) or not getattr(self.__class__, name) == value:
return value
# of an entity attribute (it's a concrete value instead)
if not hasattr(self.__class__, name): return value
if not getattr(self.__class__, name) == value: return value

# checks if the current attribute name refers a relation
# so that options on how to lazy load it can be defined
Expand Down

0 comments on commit 4ce6ad7

Please sign in to comment.