Commit 00ad9a20 authored by Sergios Aftsidis's avatar Sergios Aftsidis

Add dependencies on migrations (migrate did not work)

parent 47017037
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment