Used the full_name in seed_db
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 01:52:17 +0530
changeset 303 41fcf2273003
parent 302 4ee9a0f32f76
child 304 37adf6656f48
Used the full_name in seed_db
profile/management/commands/seed_db.py
--- a/profile/management/commands/seed_db.py	Sat Jan 08 01:46:33 2011 +0530
+++ b/profile/management/commands/seed_db.py	Sat Jan 08 01:52:17 2011 +0530
@@ -16,6 +16,7 @@
         username = 'user'+str(i)
         email = username+'@example.com'
         password = '123456'
+        full_name = "User "+str(i)
         dob = datetime.now()
         gender = "M"
         aboutme = "I am User"+str(i)
@@ -28,6 +29,7 @@
 
         new_profile = Profile()
         new_profile.user = new_user
+        new_profile.full_name = full_name
         new_profile.dob = dob
         new_profile.aboutme = aboutme
         new_profile.gender = gender