diff options
author | Marian Sigler <m@qjym.de> | 2017-02-13 12:28:35 +0100 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2017-02-13 12:28:35 +0100 |
commit | 46e41b765dbb0c5149763cd0569e672351cfc481 (patch) | |
tree | deddd1661b359b626def8ea253c067c37eeb7983 /app | |
parent | 1c5b9f289807bf9b00b292502d5103bfdeb65a80 (diff) | |
download | klausuren-46e41b765dbb0c5149763cd0569e672351cfc481.tar.gz klausuren-46e41b765dbb0c5149763cd0569e672351cfc481.tar.bz2 klausuren-46e41b765dbb0c5149763cd0569e672351cfc481.zip |
fix not being able to create new courses
Diffstat (limited to 'app')
-rw-r--r-- | app/forms.py | 2 |
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!') |