Fixes GroupMemberCondition test

This commit is contained in:
Christopher Neugebauer 2016-09-15 15:33:52 +10:00
parent 2c8ed9a51a
commit 52fa696a01

View file

@ -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())