From 52fa696a01b2ec2030cd0735b8ba69b913b1abfe Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Thu, 15 Sep 2016 15:33:52 +1000 Subject: [PATCH] Fixes GroupMemberCondition test --- registrasion/controllers/conditions.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/registrasion/controllers/conditions.py b/registrasion/controllers/conditions.py index e9efb625..01f53e7e 100644 --- a/registrasion/controllers/conditions.py +++ b/registrasion/controllers/conditions.py @@ -334,6 +334,4 @@ class GroupMemberConditionController(IsMetByFilter, ConditionController): ''' Returns all of the items from conditions which are enabled by a user being member of a Django Auth Group. ''' - return conditions.filter( - group=user.groups.all(), - ) + return conditions.filter(group__in=user.groups.all())