aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 2dde57d..918e82a 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -152,6 +152,7 @@ class BillForm(Form):
class MemberForm(Form):
name = TextField(_("Name"), validators=[Required()])
+ weight = CommaDecimalField(_("Weight"), default=1)
submit = SubmitField(_("Add"))
def __init__(self, project, *args, **kwargs):
@@ -170,6 +171,7 @@ class MemberForm(Form):
# if the user is already bound to the project, just reactivate him
person.name = self.name.data
person.project = project
+ person.weight = self.weight.data
return person