summaryrefslogtreecommitdiff
path: root/taskapp/management/commands/seed_db.py
diff options
context:
space:
mode:
authornishanth2010-02-26 13:22:13 +0530
committernishanth2010-02-26 13:22:13 +0530
commit783a2c959f365588849b2af728aa7e9b0c19bf02 (patch)
tree0c110808e97f728ef0e2d624739ef8a07de6c0de /taskapp/management/commands/seed_db.py
parent8f9406383064921f8cf50bad0a6d4f1bd06f9cb4 (diff)
downloadpytask-783a2c959f365588849b2af728aa7e9b0c19bf02.tar.gz
pytask-783a2c959f365588849b2af728aa7e9b0c19bf02.tar.bz2
pytask-783a2c959f365588849b2af728aa7e9b0c19bf02.zip
mark task as complete functionality is added.
Diffstat (limited to 'taskapp/management/commands/seed_db.py')
-rw-r--r--taskapp/management/commands/seed_db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/taskapp/management/commands/seed_db.py b/taskapp/management/commands/seed_db.py
index 4e65065..6e57338 100644
--- a/taskapp/management/commands/seed_db.py
+++ b/taskapp/management/commands/seed_db.py
@@ -12,6 +12,8 @@ def seed_db():
""" 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):