aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-27 10:54:21 +0200
committerGravatar D0rs4n <[email protected]>2021-12-18 18:01:28 +0100
commit64c5c617df68cc7b54fffbe8d76bb5c67d641c98 (patch)
tree700be1fa0630dee2d538b17eb46679e660e2a273 /pydis_site/apps/api/models
parentFilters: Add migration to the new model (diff)
Filters: hook the new models into the REST API
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/models/bot/filters.py b/pydis_site/apps/api/models/bot/filters.py
index dfc38e82..16ac206e 100644
--- a/pydis_site/apps/api/models/bot/filters.py
+++ b/pydis_site/apps/api/models/bot/filters.py
@@ -183,5 +183,5 @@ class FilterOverride(models.Model):
delete_messages = models.BooleanField(null=True)
bypass_roles = ArrayField(models.IntegerField(), null=True)
enabled = models.BooleanField(null=True)
- default_action = models.ForeignKey("FilterAction", models.CASCADE, null=True)
- default_range = models.ForeignKey("ChannelRange", models.CASCADE, null=True)
+ filter_action = models.ForeignKey("FilterAction", models.CASCADE, null=True)
+ filter_range = models.ForeignKey("ChannelRange", models.CASCADE, null=True)