diff options
author | 2020-12-12 14:33:37 +0000 | |
---|---|---|
committer | 2020-12-12 14:33:37 +0000 | |
commit | 558b99282ddf742104c62519817954791beb605a (patch) | |
tree | cfa3b6e6a57de4278027e254385ddc759496b2b9 /backend/models/antispam.py | |
parent | Add name and description fields to Form model (diff) | |
parent | Merge pull request #17 from python-discord/ks123/response-model-endpoint (diff) |
Merge branch 'main' into ks123/form-name-description
Diffstat (limited to 'backend/models/antispam.py')
-rw-r--r-- | backend/models/antispam.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/models/antispam.py b/backend/models/antispam.py new file mode 100644 index 0000000..b16f686 --- /dev/null +++ b/backend/models/antispam.py @@ -0,0 +1,10 @@ +from pydantic import BaseModel + + +class AntiSpam(BaseModel): + """Schema model for form response antispam field.""" + + ip_hash: str + user_agent_hash: str + captcha_pass: bool + dns_blacklisted: bool |