Skip to content

Commit

Permalink
Fix order of user membership attributes in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jmewes authored and christophmeissner committed Oct 27, 2015
1 parent 5095fb2 commit a39ff8a
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 a39ff8a

Please sign in to comment.