summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-17 05:32:59 +0530
committerMadhusudan.C.S2011-01-17 05:32:59 +0530
commit71e50ce5de87206e5a3dd7dbcf7cedc752941cba (patch)
tree84a3c24308d949ba6f54c666adda3c3a191b14a2
parentac42b03421ec3af9a6b2a502a98c3dc49985a595 (diff)
downloadpytask-71e50ce5de87206e5a3dd7dbcf7cedc752941cba.tar.gz
pytask-71e50ce5de87206e5a3dd7dbcf7cedc752941cba.tar.bz2
pytask-71e50ce5de87206e5a3dd7dbcf7cedc752941cba.zip
Update the reset db script to seed profile also.
-rw-r--r--profile_fixture.json1
-rwxr-xr-xscripts/reset_db.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/profile_fixture.json b/profile_fixture.json
new file mode 100644
index 0000000..5f80943
--- /dev/null
+++ b/profile_fixture.json
@@ -0,0 +1 @@
+[{"pk": 1, "model": "profile.profile", "fields": {"dob": "1987-05-22", "gender": "Male", "aboutme": "", "address": "sdsadad", "phonenum": "", "role": "Administrator", "user": 1, "full_name": "vdvdvdvdv", "pynts": 0}}] \ No newline at end of file
diff --git a/scripts/reset_db.sh b/scripts/reset_db.sh
index 057cf92..51568ca 100755
--- a/scripts/reset_db.sh
+++ b/scripts/reset_db.sh
@@ -10,4 +10,4 @@ rm -r pytask/taskapp/migrations/
./bin/django migrate profile
./bin/django migrate taskapp
./bin/django loaddata sites_fixture.json
-
+./bin/django loaddata profile_fixture.json