Skip to content
Snippets Groups Projects
Commit 00ad9a20 authored by Sergios Aftsidis's avatar Sergios Aftsidis
Browse files

Add dependencies on migrations (migrate did not work)

parent 47017037
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,18 @@ from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
depends_on = (
('accounts', '0001_initial'),
)
def forwards(self, orm):
for userprofile in orm['accounts.UserProfile'].objects.all():
peernotification = orm.PeerNotify(user=userprofile.user, peer=userprofile.peer)
peernotification.save()
def backwards(self, orm):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment