fix migration
This commit is contained in:
Родитель
a8b32a69eb
Коммит
d16195d285
|
@ -17,8 +17,7 @@ def run():
|
||||||
else:
|
else:
|
||||||
print 'Move addon from Thunderbird "%s" to Firefox "%s"' % (
|
print 'Move addon from Thunderbird "%s" to Firefox "%s"' % (
|
||||||
fx_cat.slug, tb_cat.slug)
|
fx_cat.slug, tb_cat.slug)
|
||||||
AddonCategory.objects.filter(category=tb_cat).update(
|
AddonCategory.objects.filter(category=tb_cat).delete()
|
||||||
category=fx_cat)
|
|
||||||
# Get rid of `application_id` for Thunderbird category.
|
# Get rid of `application_id` for Thunderbird category.
|
||||||
tb_cat.update(application_id=amo.FIREFOX.id)
|
tb_cat.update(application_id=amo.FIREFOX.id)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче