aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Jannes Jonkers <[email protected]>2021-01-20 18:31:27 +0100
committerGravatar Jannes Jonkers <[email protected]>2021-01-20 18:31:27 +0100
commit31f4f3ce70f5fdefc044cf561c491adbabfb1d67 (patch)
treeec9f9cd8f28f7a01380bbcd8bbb71f85ca7efe7a /backend
parentAdd an optional response field to forms to customize the response upon submit... (diff)
Add an optional submitted_text field to forms to customize the response upon submitting.
Diffstat (limited to 'backend')
-rw-r--r--backend/models/form.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/models/form.py b/backend/models/form.py
index bc29cfa..8e59905 100644
--- a/backend/models/form.py
+++ b/backend/models/form.py
@@ -7,7 +7,7 @@ from pydantic.error_wrappers import ErrorWrapper, ValidationError
from backend.constants import FormFeatures, WebHook
from .question import Question
-PUBLIC_FIELDS = ["id", "features", "questions", "name", "description", "response"]
+PUBLIC_FIELDS = ["id", "features", "questions", "name", "description", "submitted_text"]
class _WebHook(BaseModel):
@@ -32,7 +32,7 @@ class Form(BaseModel):
questions: list[Question]
name: str
description: str
- response: t.Optional[str] = None
+ submitted_text: t.Optional[str] = None
webhook: _WebHook = None
class Config: