aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models/bot
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-08-29 09:38:25 -0700
committerGravatar GitHub <[email protected]>2020-08-29 09:38:25 -0700
commit330a27926a7f2a9bdae56a5928cd81e55ccb38ed (patch)
tree2a3e24dc32a5ca4f903e17c18d010d58a26b58e7 /pydis_site/apps/api/models/bot
parentMerge pull request #374 from Numerlor/reminder-direct-retrieve (diff)
parentFix linting issues on off-topic viewset (diff)
Merge pull request #348 from ks129/off-topic-non-random
Off-topic channel names non random selecting
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r--pydis_site/apps/api/models/bot/off_topic_channel_name.py5
1 files changed, 5 insertions, 0 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 20e77b9f..403c7465 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
@@ -16,6 +16,11 @@ class OffTopicChannelName(ModelReprMixin, models.Model):
help_text="The actual channel name that will be used on our Discord server."
)
+ used = models.BooleanField(
+ default=False,
+ help_text="Whether or not this name has already been used during this rotation",
+ )
+
def __str__(self):
"""Returns the current off-topic name, for display purposes."""
return self.name