Properly implement and test quota checking in the voucher admin

This also fixes #170
This commit is contained in:
Raphael Michel
2016-08-15 11:55:22 +02:00
parent fe6de0f635
commit f2baf79a52
3 changed files with 407 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ def extract_form_fields(soup):
if field.has_attr('checked'):
data[field['name']] = field.get('value', 'on')
continue
else:
elif field.has_attr('name'):
# single element name/value fields
data[field['name']] = field.get('value', '')
continue