From 7f42d7671d0b1d6a2b2044bdac4f485325576e36 Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Wed, 23 Nov 2016 17:21:10 -0300 Subject: [PATCH] Fixing course mofied bug --- courses/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/courses/forms.py b/courses/forms.py index 9995f65..c012c10 100644 --- a/courses/forms.py +++ b/courses/forms.py @@ -40,9 +40,9 @@ class CourseForm(forms.ModelForm): class UpdateCourseForm(CourseForm): - def __init__(self, *args, **kwargs): - super(UpdateCourseForm, self).__init__(*args, **kwargs) - self.fields["students"].required = False + #def __init__(self, *args, **kwargs): + # super(UpdateCourseForm, self).__init__(*args, **kwargs) + # self.fields["students"].required = False class Meta: model = Course -- libgit2 0.21.2