From: Bryan Date: Thu, 13 Mar 2014 23:41:58 +0000 (-0400) Subject: Not sure how this stuck around through the merge X-Git-Tag: release-20150131~154 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a822e5836d58a42ebb4e2e72168eb4941c610d2c;p=oweals%2Fkarmaworld.git Not sure how this stuck around through the merge --- diff --git a/karmaworld/apps/courses/forms.py b/karmaworld/apps/courses/forms.py index 02915a6..fc97194 100644 --- a/karmaworld/apps/courses/forms.py +++ b/karmaworld/apps/courses/forms.py @@ -23,7 +23,6 @@ from karmaworld.apps.courses.models import Course from karmaworld.apps.courses.models import School from karmaworld.apps.courses.models import Professor from karmaworld.apps.courses.models import Department -from karmaworld.apps.courses.models import ProfessorTaught class ProfessorForm(NiceErrorModelForm, ACFieldModelForm): @@ -152,17 +151,3 @@ class CourseForm(NiceErrorModelForm, DependentModelForm): self._errors[hfn] = [settings.HONEYPOT_ERROR] del cleaned_data[hfn] return cleaned_data - - -class ProfessorTaughtForm(NiceErrorModelForm, DependentModelForm): - """ Create an association between the chosen Professor and Course. """ - - class Meta: - model = ProfessorTaught - # no actual fields - fields = tuple() - # pass professor and course data onto appropriate forms. - model_fields = { - 'professor': ProfessorForm, - 'course': CourseForm, - }