wrong
This commit is contained in:
parent
3ce08c76d6
commit
8f4b6ec17e
1 changed files with 0 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
|||
from item.models import Item
|
||||
|
||||
def fix_topic(old, new):
|
||||
for i in Item.objects.all():
|
||||
if old in i.data.get('topics', []):
|
||||
i.data['topics'] = [new if t == old else t for t in i.data['topics']]
|
||||
i.save()
|
Loading…
Reference in a new issue