add next to pad.ma in migrations
This commit is contained in:
parent
fe8dc47b42
commit
ca15430389
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user