Esempio n. 1
0
def _associate_organizer_perms(organizers_users):
    permissions = organizer_permissions()
    associate_users_permissions(organizers_users, permissions)
Esempio n. 2
0
 def test_organizer_group_has_perms(self):
     group = Group.objects.get(name=ORGANIZER_GROUP_NAME)
     organizer_perms = organizer_permissions()
     group_permissions = group.permissions.all()
     for perm in organizer_perms:
         self.assertIn(perm, group_permissions)