aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2023-04-06 19:38:20 +0300
committerGravatar Boris Muratov <[email protected]>2023-04-06 19:38:20 +0300
commitc91bbccd85f64333a720a594435f9c7d33d9889d (patch)
treecd39e41f85fd23ecf98dff455f36a9442a4fdc87 /pydis_site/apps/api/models
parentMerge pull request #861 from python-discord/new-filter-schema (diff)
Fix contents and descriptions being too long for their field type
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/filters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pydis_site/apps/api/models/bot/filters.py b/pydis_site/apps/api/models/bot/filters.py
index 71f8771f..620031dc 100644
--- a/pydis_site/apps/api/models/bot/filters.py
+++ b/pydis_site/apps/api/models/bot/filters.py
@@ -126,9 +126,8 @@ class FilterList(ModelTimestampMixin, ModelReprMixin, models.Model):
class FilterBase(ModelTimestampMixin, ModelReprMixin, models.Model):
"""One specific trigger of a list."""
- content = models.CharField(max_length=100, help_text="The definition of this filter.")
- description = models.CharField(
- max_length=200,
+ content = models.TextField(help_text="The definition of this filter.")
+ description = models.TextField(
help_text="Why this filter has been added.", null=True
)
additional_settings = models.JSONField(