diff options
author | Nishanth Amuluru | 2011-01-07 12:53:12 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-07 12:53:12 +0530 |
commit | 2b95f9c97294038350a0e440e2f72a4d0f292fe2 (patch) | |
tree | b4f4b047576938ede645f7242ab7716eef1ebe7d /profile | |
parent | 05cdf540cb2bc72a97230a469928384287b140c2 (diff) | |
download | pytask-2b95f9c97294038350a0e440e2f72a4d0f292fe2.tar.gz pytask-2b95f9c97294038350a0e440e2f72a4d0f292fe2.tar.bz2 pytask-2b95f9c97294038350a0e440e2f72a4d0f292fe2.zip |
added key to the notification
Diffstat (limited to 'profile')
-rw-r--r-- | profile/management/commands/seed_db.py | 4 |
1 files changed, 3 insertions, 1 deletions
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.\ - <br /><b>a bold text</b>" + <br /><b>a bold text</b>", + uniq_key=make_key(Notification), ).save() class Command(NoArgsCommand): |