Skip to content

Commit e8d2961

Browse files
authored
Merge pull request #39 from Xpirix/make_certificate_template_optional
Make template_certificate field optional in CourseForm
2 parents 770700c + ab91fd7 commit e8d2961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_project/certification/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class CourseForm(forms.ModelForm):
408408
attrs={'class': 'form-control', 'maxlength': '120'}
409409
),
410410
)
411-
template_certificate = forms.ImageField(widget=FileUploadInput)
411+
template_certificate = forms.ImageField(widget=FileUploadInput, required=False)
412412

413413
class Meta:
414414
model = Course

0 commit comments

Comments
 (0)