Fix migrations

This commit is contained in:
dani committed 2022-08-25 00:49:10 +02:00
1 parent 24bd2aa53c
commit 4ed95d0edf
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ def md_to_html(apps, schema_editor):
for row in model.objects.all():
for field in m[1]:
field = getattr(row, field)
field = markdown.markdown(field)
html = markdown.markdown(getattr(row, field))
row.__dict__[field] = html
row.save(update_fields=m[1])
+2 -2
View File
@@ -15,8 +15,8 @@ def md_to_html(apps, schema_editor):
for row in model.objects.all():
for field in m[1]:
field = getattr(row, field)
field = markdown.markdown(field)
html = markdown.markdown(getattr(row, field))
row.__dict__[field] = html
row.save(update_fields=m[1])
+2 -2
View File
@@ -14,8 +14,8 @@ def md_to_html(apps, schema_editor):
for row in model.objects.all():
for field in m[1]:
field = getattr(row, field)
field = markdown.markdown(field)
html = markdown.markdown(getattr(row, field))
row.__dict__[field] = html
row.save(update_fields=m[1])