summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/forms.py b/app/forms.py
index 355314c..2870fca 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -30,7 +30,7 @@ class UploadForm(Form):
def validate_course(form, field):
data = form.course.data
- if (data, data) not in field.choices or data == '':
+ if data not in (k for k,v in field.choices) or data == '':
raise ValidationError(u'Bitte wähle einen Kurs!')