Esempio n. 1
0
 def save(self):
     print "save course"
     course = Course(name=self.cleaned_data['course_name'],
                     description=self.cleaned_data['description'],
                     equipment_req=self.cleaned_data['equipment_req'])
     name = self.cleaned_data['course_name']
     print name
     course.save()
Esempio n. 2
0
 def save(self):
     course = Course.get_course(name=self.cleaned_data['course_name'])
     course.set_equipment_req(self.cleaned_data['equipment_req'])
     course.set_description(self.cleaned_data['description'])
Esempio n. 3
0
 def save(self):
     course = Course.get_course(name=self.cleaned_data['course_name'])
     course.delete()
     return
Esempio n. 4
0
 def save(self):
     course = Course(name=self.cleaned_data['course_name'],
                     description=self.cleaned_data['description'],
                     equipment_req=self.cleaned_data['equipment_req'])
     course.save()
Esempio n. 5
0
 def save(self):
     print("delete " + self.cleaned_data['course_name'])
     course = Course.get_course(name=self.cleaned_data['course_name'])
     print course.name
     course.delete()
     return