Unverified Commit b8eceaac authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Fix backend check

parent db51b4d4
...@@ -27,7 +27,7 @@ class CommitteeBackend(object): ...@@ -27,7 +27,7 @@ class CommitteeBackend(object):
return set() return set()
if not hasattr(user, perm_cache_name): if not hasattr(user, perm_cache_name):
perms = (Permission.objects perms = (Permission.objects
.filter(committee=committees) .filter(committee__in=committees)
.values_list('content_type__app_label', 'codename') .values_list('content_type__app_label', 'codename')
.order_by()) .order_by())
setattr(user, perm_cache_name, setattr(user, perm_cache_name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment