Commit a245bbbe92a5b58ebbb0aa31dbe4911b747aca9d
1 parent
28c271f1
Exists in
master
and in
3 other branches
commented error part
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
subjects/forms.py
... | ... | @@ -60,15 +60,15 @@ class CreateSubjectForm(forms.ModelForm): |
60 | 60 | cleaned_data = super(CreateSubjectForm, self).clean() |
61 | 61 | subscribe_begin = cleaned_data.get('subscribe_begin') |
62 | 62 | end_date = cleaned_data.get('end_date') |
63 | - if subscribe_begin and end_date: | |
64 | - | |
63 | + """if subscribe_begin and end_date: | |
64 | + | |
65 | 65 | if subscribe_begin > end_date: |
66 | 66 | self._errors['subscribe_begin'] = [_('Subscribe period should be between course time')] |
67 | 67 | return ValueError |
68 | 68 | |
69 | 69 | if cleaned_data['init_date'] > cleaned_data['end_date']: |
70 | 70 | self._errors['init_date'] = [_('This date must be before end date of the Subject')] |
71 | - return ValueError | |
71 | + return ValueError""" | |
72 | 72 | return cleaned_data |
73 | 73 | |
74 | 74 | def clean_subscribe_begin(self): | ... | ... |