Ejemplo n.º 1
0
    def mock_grader(self):
        netid = 'grader'
        email = netid + '@dartmouth.edu'
        self.grader = get_user_model().objects.create_user(netid, netid, email)
        self.grader.groups.add(graders())
        self.grader.save()

        return self.grader
Ejemplo n.º 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]