aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-08-31 20:10:31 +0200
committerGravatar GitHub <[email protected]>2020-08-31 20:10:31 +0200
commit2eae9f8aa99b3339c1771d1d48a430c9a93ef0fd (patch)
tree7312d2494e7482cdaa7f620c0bebe8ff1cc9205e /pydis_site/apps/api/models
parentUpdate README.md (diff)
parentMerge branch 'master' into off-topic-non-random (diff)
Merge pull request #380 from ks129/off-topic-non-random
Off-topic names using tracking (v2)
Diffstat (limited to 'pydis_site/apps/api/models')
-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