taskapp/management/commands/seed_db.py
changeset 114 38793914921b
parent 111 c272d4c601cd
child 119 39ab7c460143
--- a/taskapp/management/commands/seed_db.py	Fri Feb 26 11:34:17 2010 +0530
+++ b/taskapp/management/commands/seed_db.py	Fri Feb 26 13:22:13 2010 +0530
@@ -12,6 +12,8 @@
     """ a method to seed the database with random data """
     
     defaultMentor = userEvents.createSuUser("admin", "admin@example.com", "123456", datetime.now(), "M")
+    mentor_profile = defaultMentor.get_profile()
+    userEvents.updateProfile(mentor_profile, {'rights':"AD"})
     
     for i in range(1,10):