aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-10 22:00:35 +0200
committerGravatar GitHub <[email protected]>2020-12-10 22:00:35 +0200
commitbb4b3641f908b0c9e39d1662f7dcfd2b1b634462 (patch)
tree7daff95d895d9aa56e81bdcd29f9a3c897a56f94
parentAdd form name and description to SCHEMA.md (diff)
Add name and description fields to Form model
-rw-r--r--backend/models/form.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/models/form.py b/backend/models/form.py
index a8c5f92..8d7fe9b 100644
--- a/backend/models/form.py
+++ b/backend/models/form.py
@@ -12,6 +12,8 @@ class Form(BaseModel):
id: str = Field(alias="_id")
features: t.List[str]
questions: t.List[Question]
+ name: str
+ description: str
class Config:
allow_population_by_field_name = True