summaryrefslogtreecommitdiff
path: root/kosten/app/views/expenses.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kosten/app/views/expenses.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kosten/app/views/expenses.py b/kosten/app/views/expenses.py
index 0473cda..a7adfdb 100644
--- a/kosten/app/views/expenses.py
+++ b/kosten/app/views/expenses.py
@@ -26,7 +26,8 @@ class ExpenseForm(F.Form):
description='EUR',
places=2)
- description = F.StringField('Beschreibung', F.req)
+ description = F.StringField('Beschreibung',
+ F.req + F.lenOf(SingleExpense.description))
category = F.QuerySelectField('Kategorie',
get_label='name',