Skip to content

Commit

Permalink
Merge pull request #1109 from python-discord/remove-the-redirect-filt…
Browse files Browse the repository at this point in the history
…er-list
  • Loading branch information
Xithrius authored Oct 1, 2023
2 parents 4a5eb3e + e74ce94 commit 5532c83
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pydis_site/apps/api/migrations/0092_remove_redirect_filter_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django.db import migrations
from django.apps.registry import Apps
from django.db.backends.base.schema import BaseDatabaseSchemaEditor


def forward(apps: Apps, _: BaseDatabaseSchemaEditor) -> None:
apps.get_model("api", "FilterList").objects.filter(name="redirect").delete()


class Migration(migrations.Migration):

dependencies = [
("api", "0091_antispam_filter_list"),
]

operations = [migrations.RunPython(forward)]

0 comments on commit 5532c83

Please sign in to comment.