Changeset - 0f488e7a127b
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-05 00:45:10
chrisjrn@gmail.com
Makes TeamMemberCondition work
1 file changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
registrasion/controllers/conditions.py
Show inline comments
...
 
@@ -330,8 +330,10 @@ class SpeakerConditionController(IsMetByFilter, ConditionController):
 
class GroupMemberConditionController(IsMetByFilter, ConditionController):
 

	
 
    @classmethod
 
    def pre_filter(self, queryset, user):
 
        ''' Returns all of the items from queryset which are enabled by a user
 
        being member of a Django Auth Group. '''
 
    def pre_filter(self, conditions, user):
 
        ''' Returns all of the items from conditions which are enabled by a
 
        user being member of a Django Auth Group. '''
 

	
 
        return queryset
 
        return conditions.filter(
 
            group=user.groups.all(),
 
        )
0 comments (0 inline, 0 general)