mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
I delete initial and final blanks of members that are added
This commit is contained in:
parent
787334777a
commit
aad4dfc9c1
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class MemberForm(FlaskForm):
|
|||
if field.data == form.name.default:
|
||||
raise ValidationError(_("User name incorrect"))
|
||||
if (not form.edit and Person.query.filter(
|
||||
Person.name == field.data,
|
||||
Person.name == field.data.strip(),
|
||||
Person.project == form.project,
|
||||
Person.activated == True).all()): # NOQA
|
||||
raise ValidationError(_("This project already have this member"))
|
||||
|
|
Loading…
Reference in a new issue