fix expression checked by new flake8

This commit is contained in:
Glandos 2020-07-26 00:23:13 +02:00
parent 99cb0d5ff4
commit 97a35605bd

View file

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