src/ldtplatform/migrations/0003_recalculate_contentstat.py
changeset 81 8a667bb50299
child 102 e2968797bdae
equal deleted inserted replaced
80:c4f70599bd01 81:8a667bb50299
       
     1 # -*- coding: utf-8 -*-
       
     2 import datetime
       
     3 from south.db import db
       
     4 from south.v2 import DataMigration
       
     5 from django.db import models
       
     6 from django.core.management import call_command
       
     7 
       
     8 class Migration(DataMigration):
       
     9 
       
    10     def forwards(self, orm):
       
    11         # Call the command from ldt_utils app
       
    12         call_command('statannotation')
       
    13 
       
    14     def backwards(self, orm):
       
    15         "Write your backwards methods here."
       
    16 
       
    17     models = {
       
    18         
       
    19     }
       
    20 
       
    21     complete_apps = ['ldtplatform']
       
    22     symmetrical = True