diff options
author | 2021-10-09 22:36:14 +0300 | |
---|---|---|
committer | 2021-10-09 22:36:14 +0300 | |
commit | 53bbaac0eb515febb74a7a8f97dd9483df9a8568 (patch) | |
tree | b00739b90e5d04f4ff34c48bf97547b6307d578c /pydis_site/apps/api/models | |
parent | Merge pull request #603 from python-discord/decrease-batch-size-for-user-list... (diff) |
Implement voice mute + migration from voice mute -> voice ban
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/infraction.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/infraction.py b/pydis_site/apps/api/models/bot/infraction.py index 60c1e8dd..63745490 100644 --- a/pydis_site/apps/api/models/bot/infraction.py +++ b/pydis_site/apps/api/models/bot/infraction.py @@ -17,6 +17,7 @@ class Infraction(ModelReprMixin, models.Model): ("ban", "Ban"), ("superstar", "Superstar"), ("voice_ban", "Voice Ban"), + ("voice_mute", "Voice Mute"), ) inserted_at = models.DateTimeField( default=timezone.now, @@ -45,7 +46,7 @@ class Infraction(ModelReprMixin, models.Model): help_text="The user which applied the infraction." ) type = models.CharField( - max_length=9, + max_length=10, choices=TYPE_CHOICES, help_text="The type of the infraction." ) |