Fix migrations

This commit is contained in:
2022-08-25 00:49:10 +02:00
parent 24bd2aa53c
commit 4ed95d0edf
3 changed files with 6 additions and 6 deletions

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])