src/aixweb/migrations/0003_recalculate_contentstat.py
author veltr
Mon, 10 Jun 2013 18:56:54 +0200
changeset 20 8c14a340a221
parent 10 fb466c64d84c
permissions -rwxr-xr-x
msie bugfix
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