summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 01:14:31 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-12 01:14:31 +0200
commit026a29c495a8665b8af3a7fd6686346a577d32f7 (patch)
tree71f3f0b5c5e8ddc4641d9448983a8e90cd070222
parentb49486ede2c2354bdc97a1d7668d930a1a77e73a (diff)
downloadklausuren-026a29c495a8665b8af3a7fd6686346a577d32f7.tar.gz
klausuren-026a29c495a8665b8af3a7fd6686346a577d32f7.tar.bz2
klausuren-026a29c495a8665b8af3a7fd6686346a577d32f7.zip
fixed validate_module bug
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index ce7e7b4..1d75716 100644
--- a/app.py
+++ b/app.py
@@ -66,7 +66,7 @@ class UploadForm(Form):
def validate_module(form, field):
modules = dict(FORM_MODULE_LIST)
data = form.module.data
- if module not in modules or data == '':
+ if data not in modules or data == '':
raise ValidationError(u'Bitte wähle ein Modul!')