# HG changeset patch # User Nishanth Amuluru # Date 1294384992 -19800 # Node ID 20f411241654c539e8bfea57408ca23bbf02f1ae # Parent a3a44b21845da65095a0a14db01da44eeb0f54ea added key to the notification diff -r a3a44b21845d -r 20f411241654 profile/management/commands/seed_db.py --- a/profile/management/commands/seed_db.py Fri Jan 07 12:43:01 2011 +0530 +++ b/profile/management/commands/seed_db.py Fri Jan 07 12:53:12 2011 +0530 @@ -5,6 +5,7 @@ from django.contrib.auth.models import User from pytask.profile.models import Profile, Notification +from pytask.utils import make_key def seed_db(): """ a method to seed the database with random data """ @@ -46,7 +47,8 @@ Notification(sent_to=new_user, sent_date=datetime.now(), subject="A subject here for"+str(i), message="A message with mess"+str(i)+" html inside.\ -
a bold text" +
a bold text", + uniq_key=make_key(Notification), ).save() class Command(NoArgsCommand):