diff options
author | 2023-02-17 11:40:29 +0530 | |
---|---|---|
committer | 2023-02-17 11:40:29 +0530 | |
commit | 8a954029a2f0f22cde599afee3ff8195680e621e (patch) | |
tree | 2907273cff7e4ed75bbdfe043877678199ecc003 /pydis_site/apps/api/models | |
parent | Merge pull request #875 from Ibrahim2750mi/events-calendar (diff) |
Add jump_url field to infraction model
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/infraction.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/infraction.py b/pydis_site/apps/api/models/bot/infraction.py index 218ee5ec..ea0277c3 100644 --- a/pydis_site/apps/api/models/bot/infraction.py +++ b/pydis_site/apps/api/models/bot/infraction.py @@ -69,6 +69,14 @@ class Infraction(ModelReprMixin, models.Model): help_text="Whether a DM was sent to the user when infraction was applied." ) + jump_url = models.CharField( + default='', + 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}" |