src/ldtplatform/migrations/0002_iri_url_update.py
changeset 78 d108011b6e99
child 102 e2968797bdae
equal deleted inserted replaced
77:55e4f7d90110 78:d108011b6e99
       
     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('updateiriurlinprojects')
       
    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