mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 05:07:50 +02:00
Fix migrations
This commit is contained in:
@@ -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])
|
||||
|
||||
|
@@ -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])
|
||||
|
||||
|
@@ -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])
|
||||
|
||||
|
Reference in New Issue
Block a user