Various improvements for flatpages

This commit is contained in:
2022-08-25 12:44:04 +02:00
parent 4ed95d0edf
commit d30d9fc9ed
12 changed files with 69 additions and 16 deletions

View File

@@ -6,11 +6,11 @@ from django.db import migrations
def md_to_html(apps, schema_editor):
fields = {
'RollingStock': ['notes'],
"RollingStock": ["notes"],
}
for m in fields.items():
model = apps.get_model('roster', m[0])
model = apps.get_model("roster", m[0])
for row in model.objects.all():
for field in m[1]: