|
@@ -1,6 +1,11 @@
|
|
|
from django.db import migrations
|
|
|
|
|
|
|
|
|
+def register_bans_version_tracker(apps, schema_editor):
|
|
|
+ from misago.core.migrationutils import cachebuster_register_cache
|
|
|
+ cachebuster_register_cache(apps, "misago_bans")
|
|
|
+
|
|
|
+
|
|
|
class Migration(migrations.Migration):
|
|
|
"""Migration superseded by 0016"""
|
|
|
|
|
@@ -9,4 +14,7 @@ class Migration(migrations.Migration):
|
|
|
('misago_core', '0001_initial'),
|
|
|
]
|
|
|
|
|
|
- operations = []
|
|
|
+ operations = [
|
|
|
+ # FIXME: remove this operation
|
|
|
+ migrations.RunPython(register_bans_version_tracker),
|
|
|
+ ]
|