Commit 7f42d7671d0b1d6a2b2044bdac4f485325576e36

Authored by Filipe Medeiros
1 parent 264e0c38

Fixing course mofied bug

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
courses/forms.py
@@ -40,9 +40,9 @@ class CourseForm(forms.ModelForm): @@ -40,9 +40,9 @@ class CourseForm(forms.ModelForm):
40 40
41 class UpdateCourseForm(CourseForm): 41 class UpdateCourseForm(CourseForm):
42 42
43 - def __init__(self, *args, **kwargs):  
44 - super(UpdateCourseForm, self).__init__(*args, **kwargs)  
45 - self.fields["students"].required = False 43 + #def __init__(self, *args, **kwargs):
  44 + # super(UpdateCourseForm, self).__init__(*args, **kwargs)
  45 + # self.fields["students"].required = False
46 46
47 class Meta: 47 class Meta:
48 model = Course 48 model = Course