Skip to content

Commit

Permalink
Merge pull request #222 from volunteer-planner/hotfix/fix_membership_…
Browse files Browse the repository at this point in the history
…caching

Fix order of user membership attributes in filter
  • Loading branch information
pitpalme committed Oct 27, 2015
2 parents 5095fb2 + a39ff8a commit 1b49075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions organizations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def get_cached_memberships(user):
if not user_memberships:
print 'cache miss. caching now...'
user_memberships = {
'organizations': get_memberships_by_role(user.account.facility_set),
'facilities': get_memberships_by_role(
'facilities': get_memberships_by_role(user.account.facility_set),
'organizations': get_memberships_by_role(
user.account.organization_set),
}
setattr(user, '__memberships', user_memberships)
Expand Down

0 comments on commit 1b49075

Please sign in to comment.