diff --git a/course/forms.py b/course/forms.py index 2fcc318..ce568d3 100644 --- a/course/forms.py +++ b/course/forms.py @@ -2,6 +2,7 @@ from django import forms from accounts.models import User from .models import Program, Course, CourseAllocation, Upload, UploadVideo + class ProgramForm(forms.ModelForm): class Meta: model = Program @@ -11,6 +12,8 @@ class ProgramForm(forms.ModelForm): super().__init__(*args, **kwargs) self.fields["title"].widget.attrs.update({"class": "form-control"}) self.fields["summary"].widget.attrs.update({"class": "form-control"}) + + class CourseAddForm(forms.ModelForm): class Meta: model = Course diff --git a/templates/course/program_add.html b/templates/course/program_add.html index 14b4fe6..b9880e1 100644 --- a/templates/course/program_add.html +++ b/templates/course/program_add.html @@ -22,7 +22,8 @@
{% trans 'Program Add Form' %}