diff options
Diffstat (limited to 'website/forms.py')
-rwxr-xr-x | website/forms.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/website/forms.py b/website/forms.py index 5b094e7..bee9ba9 100755 --- a/website/forms.py +++ b/website/forms.py @@ -1,7 +1,7 @@ from django import forms from django.forms import ModelForm, widgets - +import datetime from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.validators import MinLengthValidator, MinValueValidator, \ @@ -396,4 +396,13 @@ class QuestionUploadForm(forms.ModelForm): widgets = { 'question_day': DateInput(), - }
\ No newline at end of file + } + + +#To upload model for each question +''' +class UploadModelForm(forms.ModelForm): + class Meta: + model = UploadModel + fields = ['model_file'] +''' |