summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/forms.py4
-rw-r--r--app/main.py2
2 files changed, 3 insertions, 3 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')
diff --git a/app/main.py b/app/main.py
index 0ca0d2a..1934c23 100644
--- a/app/main.py
+++ b/app/main.py
@@ -3,7 +3,7 @@
import os, sys
from flask import Blueprint, render_template, request, flash, redirect,\
url_for, current_app, g
-from werkzeug import secure_filename
+from werkzeug.utils import secure_filename
from wtforms.validators import ValidationError
from .backend import Storage