From 374ea516bd0388d21e73c99dfe95f627bae9031d Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 13 Sep 2024 23:35:20 +0100 Subject: [PATCH] region comments --- apps/home/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/home/models.py b/apps/home/models.py index 6c0fe2e..44ab055 100644 --- a/apps/home/models.py +++ b/apps/home/models.py @@ -11,6 +11,8 @@ from django.core.validators import MaxValueValidator, MinValueValidator log = logging.getLogger(__name__) +#region Guild Settings + class GuildSettings(models.Model): """ Represents settings for a saved Discord Guild `SavedGuild`. @@ -50,6 +52,8 @@ class GuildSettings(models.Model): get_latest_by = "id" +#region Saved Guilds + class SavedGuilds(models.Model): """ Represents a saved Discord Guild (aka Server). @@ -124,6 +128,8 @@ class SavedGuilds(models.Model): super().save(*args, **kwargs) +#region Sub Channels + class SubChannel(models.Model): """ Represents a Discord TextChannel, saved against a Subscription. @@ -172,6 +178,8 @@ class SubChannel(models.Model): return self.channel_id +#region Filters + # using a brilliant matching model design from paperless-ngx src class Filter(models.Model): MATCH_NONE = 0 @@ -226,6 +234,8 @@ class Filter(models.Model): return f"{self.guild_id} - {self.name}" +#region Subscription + class Subscription(models.Model): """ The Subscription Model. @@ -327,6 +337,8 @@ class Subscription(models.Model): return self.name +#region Tracked Content + class TrackedContent(models.Model): """ Tracked Content Model