class Migration(SchemaMigration):
+ depends_on = (
+ ('karmauser', '0002_auto__del_karmauser__add_userprofile'),
+ )
+
def forwards(self, orm):
# Changing field 'Note.user'
}
}
- complete_apps = ['notes']
\ No newline at end of file
+ complete_apps = ['notes']
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
+from karmaworld.apps.notes.models import Note
class Migration(SchemaMigration):
def forwards(self, orm):
+ # Removing all possible FK dependencies on KarmaUser from Note
+ Note.objects.update(user=None)
+
# Deleting model 'KarmaUser'
db.delete_table('users_karmauser')
}
}
- complete_apps = ['users']
\ No newline at end of file
+ complete_apps = ['users']