##// END OF EJS Templates
Closed branch 1.7-dev cause it's time for 1.7 release
Closed branch 1.7-dev cause it's time for 1.7 release

File last commit:

r291:3b113b42 default
r572:6368320b 1.7-dev
Show More
maintenance.py
15 lines | 302 B | text/x-python | PythonLexer
neko259
Added replies mapping to the server side instead of JS.
r291 """
Maintenance script for neboard imageboard. Use this to update data after
migrations etc.
"""
from boards.models import Post
from boards import views
def update_posts():
for post in Post.objects.all():
print 'Updating post #' + str(post.id)
post.save()
Post.objects.connect_replies(post)