src/aixweb/migrations/0002_iri_url_update.py
author cavaliet
Fri, 31 May 2013 16:05:17 +0200
changeset 10 fb466c64d84c
permissions -rw-r--r--
first commit for aixweb django app (with aix custum metadatacomposer templates)
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