added boat type to upload form
This commit is contained in:
@@ -78,14 +78,19 @@ class DocumentsForm(forms.Form):
|
||||
|
||||
workouttype = forms.ChoiceField(required=True,
|
||||
choices=Workout.workouttypes)
|
||||
# initial='rower')
|
||||
|
||||
boattype = forms.ChoiceField(required=True,
|
||||
choices=types.boattypes,
|
||||
label = "Boat Type")
|
||||
|
||||
|
||||
notes = forms.CharField(required=False,
|
||||
widget=forms.Textarea)
|
||||
|
||||
offline = forms.BooleanField(initial=False,required=False,
|
||||
label='Process in Background')
|
||||
class Meta:
|
||||
fields = ['title','file','workouttype','fileformat','offline']
|
||||
fields = ['title','file','workouttype','boattype','fileformat','offline']
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
from django.forms.widgets import HiddenInput
|
||||
|
||||
Reference in New Issue
Block a user