aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-01 22:54:21 +0200
committerGravatar GitHub <[email protected]>2020-12-01 22:54:21 +0200
commite98dd185776532583cd5730b548caf8129a0c076 (patch)
treed0e7bfe830a19f300cd9382868d3749f87f71d4b
parentFix linting (diff)
Ignore too long line for if statement
-rw-r--r--backend/models/form.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/backend/models/form.py b/backend/models/form.py
index e490268..d0f0a3c 100644
--- a/backend/models/form.py
+++ b/backend/models/form.py
@@ -21,10 +21,7 @@ class Form(BaseModel):
if not all(v in FormFeatures.__members__.values() for v in value):
raise ValueError("Form features list contains one or more invalid values.")
- if (
- FormFeatures.COLLECT_EMAIL in value and
- FormFeatures.REQUIRES_LOGIN not in value
- ):
+ if FormFeatures.COLLECT_EMAIL in value and FormFeatures.REQUIRES_LOGIN not in value: # noqa
raise ValueError("COLLECT_EMAIL feature require REQUIRES_LOGIN feature.")
return value