2013-06-04 07:19:45 +04:00
|
|
|
#!/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()
|