aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models/bot
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-09-03 16:52:48 +0200
committerGravatar Johannes Christ <[email protected]>2019-09-03 16:52:48 +0200
commit03a08db9037904c1dafe42394c33fbc907821b5f (patch)
treeff98d12449a798010dd45c089a250575945f4545 /pydis_site/apps/api/models/bot
parentMerge pull request #236 from python-discord/django-roles-api-add-position (diff)
Allow special characters in off topic names.
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r--pydis_site/apps/api/models/bot/off_topic_channel_name.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/off_topic_channel_name.py b/pydis_site/apps/api/models/bot/off_topic_channel_name.py
index 0891f811..29280c27 100644
--- a/pydis_site/apps/api/models/bot/off_topic_channel_name.py
+++ b/pydis_site/apps/api/models/bot/off_topic_channel_name.py
@@ -10,7 +10,9 @@ class OffTopicChannelName(ModelReprMixin, models.Model):
name = models.CharField(
primary_key=True,
max_length=96,
- validators=(RegexValidator(regex=r'^[a-z0-9-]+$'),),
+ validators=(
+ RegexValidator(regex=r"^[a-z0-9\U0001d5a0-\U0001d5b9-ǃ?’']+$"),
+ ),
help_text="The actual channel name that will be used on our Discord server."
)