Browse Source

fix course count

master
alireza 1 year ago
parent
commit
85d2880450
  1. 10
      apps/course/admin/course.py

10
apps/course/admin/course.py

@ -29,7 +29,15 @@ class CourseForm(forms.ModelForm):
'timing': JsonEditorWidget(attrs={'schema': get_weekly_timing_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."
# )

Loading…
Cancel
Save