aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-12-28 16:24:37 +0100
committerGravatar GitHub <[email protected]>2021-12-28 16:24:37 +0100
commit4ab79729b1c4ed579bf26349abee7d42a9fdcf2f (patch)
treec7d7c51ed6ab9598ab9e00e7aca253bea1077588 /pydis_site/apps/api/models
parentMerge pull request #636 from python-discord/revert-metricity-change (diff)
parentMerge branch 'main' into otn_softdel (diff)
Merge pull request #508 from RohanJnr/otn_softdel
offtopicnames active attribute and support for PUT and PATCH request
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/off_topic_channel_name.py7
1 files changed, 6 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 8999e560..e9fec114 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
@@ -18,7 +18,12 @@ class OffTopicChannelName(ModelReprMixin, models.Model):
used = models.BooleanField(
default=False,
- help_text="Whether or not this name has already been used during this rotation",
+ help_text="Whether or not this name has already been used during this rotation.",
+ )
+
+ active = models.BooleanField(
+ default=True,
+ help_text="Whether or not this name should be considered for naming channels."
)
def __str__(self):