Beispiel #1
0
    def mock_safety_lead(self):
        netid = 'safety'
        email = netid + '@dartmouth.edu'
        self.safety_lead = get_user_model().objects.create_user(netid, netid, email)
        self.safety_lead.groups.add(safety_leads())
        self.safety_lead.save()

        return self.safety_lead
Beispiel #2
0
 def get_forms(self, *args, **kwargs):
     groups = [
         directors(),
         trip_leader_trainers(),
         olcs(),
         directorate(),
         safety_leads(),
         graders()]
     return [GenericGroupForm(group, *args, prefix=str(group), **kwargs)
             for group in groups]