diff options
author | 2020-03-30 13:30:00 +0300 | |
---|---|---|
committer | 2020-03-30 13:30:00 +0300 | |
commit | 46ef497fd028531ffac8ebc19dec41a3272f72a3 (patch) | |
tree | 7b107a786bf5655a920b87db3c63a37bfb8b49e5 /pydis_site/apps/api/models | |
parent | Add Game Jam banner to landing page (diff) |
(Off-topic Channel Names): Added new field to model: `used` that show is this name already used on this round of names, added migration for this.
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/off_topic_channel_name.py | 5 |
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 29280c27..3345754d 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="Show is channel already used as channel name in this round." + ) + def __str__(self): """Returns the current off-topic name, for display purposes.""" return self.name |