We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07af32c commit 52a2040Copy full SHA for 52a2040
src/utils/migrations/0043_auto_20250917_1703.py
@@ -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
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