diff options
author | 2021-11-10 22:44:20 +0000 | |
---|---|---|
committer | 2021-11-25 20:37:02 +0100 | |
commit | 61f9daed8d71046351e60c57ccdbf34443085561 (patch) | |
tree | b66f6110d0d6935184d45e275102bc965efeffdb /pydis_site/apps/api/models | |
parent | Merge pull request #628 from python-discord/alter-query-to-leverage-index (diff) |
Add `dm_sent` field to infractions model & serializer
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/infraction.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/infraction.py b/pydis_site/apps/api/models/bot/infraction.py index 60c1e8dd..913631d4 100644 --- a/pydis_site/apps/api/models/bot/infraction.py +++ b/pydis_site/apps/api/models/bot/infraction.py @@ -57,6 +57,10 @@ class Infraction(ModelReprMixin, models.Model): default=False, help_text="Whether the infraction is a shadow infraction." ) + dm_sent = models.BooleanField( + null=True, + help_text="Whether a DM was sent to the user when infraction was applied." + ) def __str__(self): """Returns some info on the current infraction, for display purposes.""" |