src/aixweb/migrations/0002_iri_url_update.py
author cavaliet
Tue, 18 Jun 2013 12:22:38 +0200
changeset 31 8239b6d8417f
parent 10 fb466c64d84c
permissions -rwxr-xr-x
Added tag V00.01.01 for changeset 0b39b98a5bc9
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('updateiriurlinprojects')
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