From 2b95f9c97294038350a0e440e2f72a4d0f292fe2 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Fri, 7 Jan 2011 12:53:12 +0530 Subject: added key to the notification --- profile/management/commands/seed_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'profile') diff --git a/profile/management/commands/seed_db.py b/profile/management/commands/seed_db.py index 0ba4965..ed6ee9a 100644 --- a/profile/management/commands/seed_db.py +++ b/profile/management/commands/seed_db.py @@ -5,6 +5,7 @@ from django.core.management.base import NoArgsCommand 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 @@ def seed_db(): 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): -- cgit