Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fixed tiny bug in filtering relations
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Jan 20, 2018
1 parent 7878e80 commit a51a922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def to_dict(self):
# removable_keys.add(prop)

# remove relations for now!!!
if isinstance(getattr(self, prop), relationship_manager.ZeroOrMore):
if isinstance(getattr(self, prop), relationship_manager.RelationshipManager):
removable_keys.add(prop)

# remove blocked properties, e.g. password, id, ...
Expand Down

0 comments on commit a51a922

Please sign in to comment.