src/aixweb/migrations/0003_recalculate_contentstat.py
author cavaliet
Wed, 19 Jun 2013 18:02:06 +0200
changeset 34 a92b8dc8de4d
parent 10 fb466c64d84c
permissions -rwxr-xr-x
Added tag V00.01.02 for changeset 7af893e283d6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     2
from django.core.management import call_command
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     3
from south.v2 import DataMigration
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     4
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     5
class Migration(DataMigration):
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     6
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     7
    def forwards(self, orm):
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     8
        # Call the command from ldt_utils app
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     9
        call_command('statannotation')
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    10
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    11
    def backwards(self, orm):
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    12
        "Write your backwards methods here."
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    13
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    14
    models = {
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    15
        
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    16
    }
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    17
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    18
    complete_apps = ['ldtplatform']
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    19
    symmetrical = True