Commit c894c76d by Czémán Arnold

dashboard: small fix in FilterMixin

parent 868c2ca6
......@@ -173,11 +173,11 @@ class FilterMixin(object):
pk_list = []
for record in queryset:
sum = record.object_level_set.annotate(
count = record.object_level_set.annotate(
Count('users'), Count('groups')).aggregate(
Sum('users__count'), Sum('groups__count'))
if (sum['users__count__sum'] > 1 or
sum['groups__count__sum'] > 0):
if (count['users__count__sum'] > 1 or
count['groups__count__sum'] > 0):
pk_list.append(record.pk)
......
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 sign in to comment