summaryrefslogtreecommitdiffstats
path: root/app/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/forms.py')
-rw-r--r--app/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/forms.py b/app/forms.py
index 94e9947..efd593a 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -2,14 +2,14 @@
from datetime import date
from flask import current_app
-from flask.ext.wtf import Form
+from flask_wtf import FlaskForm
from wtforms import TextField, FileField, SelectField, validators
from wtforms.validators import ValidationError
year_start = date.today().year
year_end = current_app.config['FORM_START_YEAR']-1
choices = [(str(x),x) for x in range(year_start, year_end, -1)]
-class UploadForm(Form):
+class UploadForm(FlaskForm):
""" Upload Form class for validation """
study = TextField('Studiengang')
exam = FileField('Klausur')