##// END OF EJS Templates
Reflinks to OPs are bold now. Refactored reflinks to build using the same code. Refactored autoescaping
Reflinks to OPs are bold now. Refactored reflinks to build using the same code. Refactored autoescaping

File last commit:

r1309:a2eaff61 default
r1309:a2eaff61 default
Show More
0025_auto_20150825_2049.py
21 lines | 478 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
from boards.models import Post
class Migration(migrations.Migration):
def refuild_refmap(apps, schema_editor):
for post in Post.objects.all():
post.build_refmap()
post.save(update_fields=['refmap'])
dependencies = [
('boards', '0024_post_tripcode'),
]
operations = [
migrations.RunPython(refuild_refmap),
]