diff options
author | 2021-11-25 19:49:53 +0000 | |
---|---|---|
committer | 2021-11-25 19:49:53 +0000 | |
commit | e2cd5bde82041ef8866bb97f777bc4bf8c00e5ef (patch) | |
tree | 2c0a70c670b11066720e902e4df3902ebacbb1df /pydis_site/apps/api/models | |
parent | Merge pull request #628 from python-discord/alter-query-to-leverage-index (diff) | |
parent | Merge migrations with upstream (diff) |
Merge pull request #621 from python-discord/add-dm_sent-field
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.""" |