##// END OF EJS Templates
Merged with default
Merged with default

File last commit:

r1320:c450e81f merge decentral
r1320:c450e81f merge decentral
Show More
0025_auto_20150825_2049.py
21 lines | 495 B | text/x-python | PythonLexer
/ boards / migrations / 0025_auto_20150825_2049.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
def refuild_refmap(apps, schema_editor):
Post = apps.get_model('boards', 'Post')
for post in Post.objects.all():
post.build_refmap()
post.save(update_fields=['refmap'])
dependencies = [
('boards', '0024_post_tripcode'),
]
operations = [
migrations.RunPython(refuild_refmap),
]