(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( and Person.query.filter(
Person.name == field.data, Person.name == field.data,
Person.project == form.project, Person.project == form.project,
Person.activated is True, Person.activated,
).all() ).all()
): # NOQA ): # NOQA
raise ValidationError(_("This project already have this member")) raise ValidationError(_("This project already have this member"))