Course Times Standards CSV v1 working
This commit is contained in:
@@ -212,6 +212,18 @@ class CourseForm(forms.Form):
|
||||
from django.forms.widgets import HiddenInput
|
||||
super(CourseForm, self).__init__(*args, **kwargs)
|
||||
|
||||
# The form used for uploading images
|
||||
class StandardsForm(forms.Form):
|
||||
name = forms.CharField(max_length=150,label='Course Name')
|
||||
file = forms.FileField(required=False,
|
||||
validators=[must_be_csv])
|
||||
notes = forms.CharField(required=False,
|
||||
max_length=200,label='Course Notes',
|
||||
widget=forms.Textarea)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
from django.forms.widgets import HiddenInput
|
||||
super(StandardsForm, self).__init__(*args, **kwargs)
|
||||
|
||||
# The form used for uploading files
|
||||
class DocumentsForm(forms.Form):
|
||||
|
||||
Reference in New Issue
Block a user