diff options
| author | 2021-04-27 16:39:00 +0200 | |
|---|---|---|
| committer | 2021-12-18 18:02:08 +0100 | |
| commit | c6dfd896304cb4e36c4020f4704d9537fd3e8e9f (patch) | |
| tree | 3d5a3dbfada12b848ef80f1278c9afec26d64f10 /pydis_site/apps/api/models | |
| parent | Filters: hook the new models into the REST API (diff) | |
Filters: update tests to the new schema
Diffstat (limited to 'pydis_site/apps/api/models')
| -rw-r--r-- | pydis_site/apps/api/models/bot/filters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/filters.py b/pydis_site/apps/api/models/bot/filters.py index 16ac206e..869f947c 100644 --- a/pydis_site/apps/api/models/bot/filters.py +++ b/pydis_site/apps/api/models/bot/filters.py @@ -49,7 +49,7 @@ class FilterList(models.Model): help_text="Whenever this list is an allowlist or denylist" ) - filters = models.ManyToManyField("Filter", help_text="The content of this list.") + filters = models.ManyToManyField("Filter", help_text="The content of this list.", default=[]) default_settings = models.ForeignKey( "FilterSettings", models.CASCADE, |