diff options
Diffstat (limited to 'app/forms.py')
-rw-r--r-- | app/forms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/forms.py b/app/forms.py index 2332179..355314c 100644 --- a/app/forms.py +++ b/app/forms.py @@ -29,9 +29,8 @@ class UploadForm(Form): raise ValidationError(u'Zu große Datei') def validate_course(form, field): - courses = dict(current_app.config['STUDIES'][form.study.data]) data = form.course.data - if data not in courses or data == '': + if (data, data) not in field.choices or data == '': raise ValidationError(u'Bitte wähle einen Kurs!') |