diff options
author | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-10 01:11:17 +0100 |
---|---|---|
committer | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-10 01:11:17 +0100 |
commit | fc1c782fba3967607e35f83f9c12a9db26c30fc9 (patch) | |
tree | 3f3efa3d5c740f92f24bbd6d3caf7cdfdc30a25b /app/forms.py | |
parent | 3283c54d915ada01ce44dda9fb3f4472c41566f6 (diff) | |
download | klausuren-fc1c782fba3967607e35f83f9c12a9db26c30fc9.tar.gz klausuren-fc1c782fba3967607e35f83f9c12a9db26c30fc9.tar.bz2 klausuren-fc1c782fba3967607e35f83f9c12a9db26c30fc9.zip |
Remove optinal slug for forms
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!') |