Commit dc43cab9 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'remove-regenerate' into 'master'

Remove thabloid regeneration migration

See merge request !803
parents 97b40767 734d7738
from django.db import migrations
def regenerate(apps, schema_editor):
Thabloid = apps.get_model('thabloid', 'Thabloid')
for thabloid in Thabloid.objects.all():
thabloid.extract_thabloid_pages(True)
class Migration(migrations.Migration):
dependencies = [
('thabloid', '0003_auto_20180307_2047'),
]
operations = [
migrations.RunPython(regenerate)
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment