Skip to content

Commit

Permalink
Added tests for relations module
Browse files Browse the repository at this point in the history
  • Loading branch information
Relrin committed Nov 18, 2016
1 parent 3fd76fb commit 20e17b1
Show file tree
Hide file tree
Showing 2 changed files with 506 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aiorest_ws/db/orm/django/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_attribute(self, instance):

relationship = get_attribute(instance, self.source_attrs)
if hasattr(relationship, 'all'):
relationship.all()
return relationship.all()
return relationship


Expand Down
Loading

0 comments on commit 20e17b1

Please sign in to comment.