Skip to content
Browse files

fix real_entities()

  • Loading branch information...
1 parent dbf6ab6 commit 9dae549eb1531f9b420ecc957771cd73677ff674 @evildmp committed Apr 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 contacts_and_people/models.py
View
4 contacts_and_people/models.py
@@ -492,7 +492,7 @@ def get_roles_for_members(self, members):
The roles returned are in alphabetical order by Person.
"""
for member in members:
- ms = member.member_of.all()
+ ms = member.member_of()
# get the best named membership in the entity
named_memberships = list(ms.filter(entity=self).exclude(role ="").order_by('-importance_to_person'))
if named_memberships:
@@ -714,7 +714,7 @@ def get_please_contact(self):
@property
def real_entities(self):
# returns non-abstract entities the person belongs to
- return self.member_of.objects.filter(entity__abstract_entity = False)
+ return self.member_of.filter(entity__abstract_entity = False)
def gather_entities(self):

0 comments on commit 9dae549

Please sign in to comment.
Something went wrong with that request. Please try again.