|
|
@ -29,7 +29,15 @@ class CourseForm(forms.ModelForm): |
|
|
'timing': JsonEditorWidget(attrs={'schema': get_weekly_timing_schema}), |
|
|
'timing': JsonEditorWidget(attrs={'schema': get_weekly_timing_schema}), |
|
|
'features': JsonEditorWidget(attrs={'schema': get_course_feature_schema}), |
|
|
'features': JsonEditorWidget(attrs={'schema': get_course_feature_schema}), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
help_texts = { |
|
|
|
|
|
'status': 'If set to inactive, the course will not be displayed.', |
|
|
|
|
|
} |
|
|
|
|
|
# def __init__(self, *args, **kwargs): |
|
|
|
|
|
# super(CourseForm, self).__init__(*args, **kwargs) |
|
|
|
|
|
# # اضافه کردن help_text به فیلد status |
|
|
|
|
|
# self.fields['status'].help_text = _( |
|
|
|
|
|
# "If set to 'Inactive', this item will not be displayed." |
|
|
|
|
|
# ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|