(really) fix condition

This commit is contained in:
Glandos 2020-07-26 00:40:58 +02:00
parent 97a35605bd
commit d2c9fc8394

View file

@ -312,7 +312,7 @@ class MemberForm(FlaskForm):
and Person.query.filter(
Person.name == field.data,
Person.project == form.project,
Person.activated is True,
Person.activated,
).all()
): # NOQA
raise ValidationError(_("This project already have this member"))