add next to pad.ma in migrations

This commit is contained in:
Sanj 2012-02-25 18:03:00 +05:30
parent fe8dc47b42
commit ca15430389

View File

@ -47,3 +47,13 @@ def doAll():
p.html = newText
p.save()
def nextToCurrent(text):
return text.replace(NEXT, OLD)
def nextAll():
for p in PadmaText.objects.all():
print p.title
p.html = nextToCurrent(p.html)
p.save()