Skip to content

Commit 52a2040

Browse files
committed
fix: Adds a migration that disables typesetting plugin
1 parent 07af32c commit 52a2040

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 4.2.22 on 2025-09-17 17:03
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("utils", "0042_merge_20250627_0840"),
9+
]
10+
11+
def disable_typesetting_plugin(apps, schema_editor):
12+
Plugin = apps.get_model("utils", "Plugin")
13+
Plugin.objects.filter(name="typesetting").update(enabled=False)
14+
15+
def enable_typesetting_plugin(apps, schema_editor):
16+
Plugin = apps.get_model("utils", "Plugin")
17+
Plugin.objects.filter(name="typesetting").update(enabled=True)
18+
19+
operations = [
20+
migrations.RunPython(
21+
disable_typesetting_plugin, reverse_code=enable_typesetting_plugin
22+
),
23+
]

0 commit comments

Comments
 (0)