addons-server/migrations/597-theme-description.py

18 строки
435 B
Python
Исходник Обычный вид История

#!/usr/bin/env python
from addons.models import Addon
import amo
def run():
"""
Migrate summary to description field for a handful of themes after
getpersonas migration.
"""
2013-06-07 01:49:00 +04:00
# addons = Addon.objects.filter(type=amo.ADDON_PERSONA,
# description__isnull=True, summary__isnull=False)
# for addon in addons:
# addon.description = addon.summary
# addon.summary = ''
# addon.save()