diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-22 23:19:00 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-22 23:19:00 +0200 |
| commit | 5550e18cfd628fcb7431f560323f681d06d3edc7 (patch) | |
| tree | 1cb5adc10d0e43b359279e35c7fca4c0912bd254 /budget/forms.py | |
| parent | 9eab5be9a33e7dab46e7de4692ca788868d816dc (diff) | |
| download | ihatemoney-mirror-5550e18cfd628fcb7431f560323f681d06d3edc7.zip ihatemoney-mirror-5550e18cfd628fcb7431f560323f681d06d3edc7.tar.gz ihatemoney-mirror-5550e18cfd628fcb7431f560323f681d06d3edc7.tar.bz2 | |
Add missing tests. Fixes #14 and #22.
Diffstat (limited to 'budget/forms.py')
| -rw-r--r-- | budget/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/budget/forms.py b/budget/forms.py index 51da01f..6272b7f 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -85,7 +85,8 @@ class MemberForm(Form): def validate_name(form, field): if Person.query.filter(Person.name == field.data)\ - .filter(Person.project == form.project).all(): + .filter(Person.project == form.project)\ + .filter(Person.activated == True).all(): raise ValidationError("This project already have this member") |
