Not sure how this stuck around through the merge
authorBryan <btbonval@gmail.com>
Thu, 13 Mar 2014 23:41:58 +0000 (19:41 -0400)
committerBryan <btbonval@gmail.com>
Thu, 13 Mar 2014 23:41:58 +0000 (19:41 -0400)
karmaworld/apps/courses/forms.py

index 02915a66661ffcfe254f26500fbbe37fccd5d136..fc9719458317f81f44d9c8946f75ef686d909cd0 100644 (file)
@@ -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,
-        }