diff options
author | 2023-03-20 14:07:30 +0200 | |
---|---|---|
committer | 2023-03-20 14:14:46 +0200 | |
commit | d4dda1cfcb3949e7303bef1457ca395da7cd89f6 (patch) | |
tree | e07a90e7ffb4840ab3d9e5198ddfa05501591cbe /pydis_site/apps/api/models/bot | |
parent | Migrate infraction type `mute` to `timeout` (diff) | |
parent | Merge pull request #902 from python-discord/dependabot/pip/flake8-bugbear-23.... (diff) |
Merge branch 'main' into mbaruh/timeout
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r-- | pydis_site/apps/api/models/bot/infraction.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/infraction.py b/pydis_site/apps/api/models/bot/infraction.py index fcf8651e..381b5b9d 100644 --- a/pydis_site/apps/api/models/bot/infraction.py +++ b/pydis_site/apps/api/models/bot/infraction.py @@ -69,6 +69,15 @@ class Infraction(ModelReprMixin, models.Model): help_text="Whether a DM was sent to the user when infraction was applied." ) + jump_url = models.URLField( + default=None, + null=True, + max_length=88, + help_text=( + "The jump url to message invoking the infraction." + ) + ) + def __str__(self): """Returns some info on the current infraction, for display purposes.""" s = f"#{self.id}: {self.type} on {self.user_id}" |