diff --git a/rowers/forms.py b/rowers/forms.py index 744c47a3..bad60f81 100644 --- a/rowers/forms.py +++ b/rowers/forms.py @@ -49,8 +49,9 @@ class StrokeDataForm(forms.Form): # The form used for uploading files class DocumentsForm(forms.Form): title = forms.CharField(required=False) - file = forms.FileField(required=True, + file = forms.FileField(required=False, validators=[validate_file_extension]) + workouttype = forms.ChoiceField(required=True, choices=Workout.workouttypes) # initial='rower') diff --git a/rowers/templates/document_form.html b/rowers/templates/document_form.html index 3c02acee..7818fe52 100644 --- a/rowers/templates/document_form.html +++ b/rowers/templates/document_form.html @@ -48,7 +48,8 @@ {% endblock %} -{% block content %} + {% block content %} +