mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +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:
|
if field.data == form.name.default:
|
||||||
raise ValidationError(_("User name incorrect"))
|
raise ValidationError(_("User name incorrect"))
|
||||||
if (not form.edit and Person.query.filter(
|
if (not form.edit and Person.query.filter(
|
||||||
Person.name == field.data,
|
Person.name == field.data.strip(),
|
||||||
Person.project == form.project,
|
Person.project == form.project,
|
||||||
Person.activated == True).all()): # NOQA
|
Person.activated == True).all()): # NOQA
|
||||||
raise ValidationError(_("This project already have this member"))
|
raise ValidationError(_("This project already have this member"))
|
||||||
|
|
Loading…
Reference in a new issue