Commits

Udi Bauman  committed 4d746f3

added users to employees initial data

  • Participants
  • Parent commits 1d9234b

Comments (0)

Files changed (2)

File django_ultrasound/employees/fixtures/auth.json

 [
     {
+        "pk": 40,
+        "model": "auth.permission",
+        "fields": {"codename": "add_activity", "name": "Can add activity", "content_type": 35}
+    },
+    {
+        "pk": 96,
+        "model": "auth.permission",
+        "fields": {"codename": "add_allocation", "name": "Can add allocation", "content_type": 78}
+    },
+    {
+        "pk": 93,
+        "model": "auth.permission",
+        "fields": {"codename": "add_constraint", "name": "Can add constraint", "content_type": 76}
+    },
+    {
+        "pk": 18,
+        "model": "auth.permission",
+        "fields": {"codename": "add_contenttype", "name": "Can add content type", "content_type": 17}
+    },
+    {
+        "pk": 50,
+        "model": "auth.permission",
+        "fields": {"codename": "add_customer", "name": "Can add customer", "content_type": 49}
+    },
+    {
+        "pk": 61,
+        "model": "auth.permission",
+        "fields": {"codename": "add_customeraddress", "name": "Can add customer address", "content_type": 47}
+    },
+    {
+        "pk": 64,
+        "model": "auth.permission",
+        "fields": {"codename": "add_customereduinstitute", "name": "Can add customer edu institute", "content_type": 48}
+    },
+    {
+        "pk": 53,
+        "model": "auth.permission",
+        "fields": {"codename": "add_customerstatus", "name": "Can add customer status", "content_type": 46}
+    },
+    {
+        "pk": 39,
+        "model": "auth.permission",
+        "fields": {"codename": "add_employee", "name": "Can add employee", "content_type": 34}
+    },
+    {
+        "pk": 36,
+        "model": "auth.permission",
+        "fields": {"codename": "add_employeetype", "name": "Can add employee type", "content_type": 33}
+    },
+    {
+        "pk": 87,
+        "model": "auth.permission",
+        "fields": {"codename": "add_event", "name": "Can add event", "content_type": 77}
+    },
+    {
+        "pk": 91,
+        "model": "auth.permission",
+        "fields": {"codename": "add_eventtype", "name": "Can add event type", "content_type": 75}
+    },
+    {
+        "pk": 30,
+        "model": "auth.permission",
+        "fields": {"codename": "add_facebookuser", "name": "Can add facebook user", "content_type": 29}
+    },
+    {
+        "pk": 16,
+        "model": "auth.permission",
+        "fields": {"codename": "add_group", "name": "Can add group", "content_type": 2}
+    },
+    {
+        "pk": 60,
+        "model": "auth.permission",
+        "fields": {"codename": "add_htmlpage", "name": "Can add html page", "content_type": 45}
+    },
+    {
+        "pk": 94,
+        "model": "auth.permission",
+        "fields": {"codename": "add_htmlpage", "name": "Can add html page", "content_type": 73}
+    },
+    {
+        "pk": 88,
+        "model": "auth.permission",
+        "fields": {"codename": "add_location", "name": "Can add location", "content_type": 74}
+    },
+    {
+        "pk": 26,
+        "model": "auth.permission",
+        "fields": {"codename": "add_logentry", "name": "Can add log entry", "content_type": 25}
+    },
+    {
+        "pk": 12,
+        "model": "auth.permission",
+        "fields": {"codename": "add_message", "name": "Can add message", "content_type": 4}
+    },
+    {
+        "pk": 13,
+        "model": "auth.permission",
+        "fields": {"codename": "add_permission", "name": "Can add permission", "content_type": 1}
+    },
+    {
+        "pk": 71,
+        "model": "auth.permission",
+        "fields": {"codename": "add_product", "name": "Can add product", "content_type": 66}
+    },
+    {
+        "pk": 103,
+        "model": "auth.permission",
+        "fields": {"codename": "add_sale", "name": "Can add sale", "content_type": 98}
+    },
+    {
+        "pk": 101,
+        "model": "auth.permission",
+        "fields": {"codename": "add_salestatus", "name": "Can add sale status", "content_type": 97}
+    },
+    {
+        "pk": 23,
+        "model": "auth.permission",
+        "fields": {"codename": "add_session", "name": "Can add session", "content_type": 21}
+    },
+    {
+        "pk": 70,
+        "model": "auth.permission",
+        "fields": {"codename": "add_suppliername", "name": "Can add supplier name", "content_type": 65}
+    },
+    {
+        "pk": 15,
+        "model": "auth.permission",
+        "fields": {"codename": "add_user", "name": "Can add user", "content_type": 3}
+    },
+    {
+        "pk": 43,
+        "model": "auth.permission",
+        "fields": {"codename": "change_activity", "name": "Can change activity", "content_type": 35}
+    },
+    {
+        "pk": 86,
+        "model": "auth.permission",
+        "fields": {"codename": "change_allocation", "name": "Can change allocation", "content_type": 78}
+    },
+    {
+        "pk": 82,
+        "model": "auth.permission",
+        "fields": {"codename": "change_constraint", "name": "Can change constraint", "content_type": 76}
+    },
+    {
+        "pk": 20,
+        "model": "auth.permission",
+        "fields": {"codename": "change_contenttype", "name": "Can change content type", "content_type": 17}
+    },
+    {
+        "pk": 57,
+        "model": "auth.permission",
+        "fields": {"codename": "change_customer", "name": "Can change customer", "content_type": 49}
+    },
+    {
+        "pk": 55,
+        "model": "auth.permission",
+        "fields": {"codename": "change_customeraddress", "name": "Can change customer address", "content_type": 47}
+    },
+    {
+        "pk": 62,
+        "model": "auth.permission",
+        "fields": {"codename": "change_customereduinstitute", "name": "Can change customer edu institute", "content_type": 48}
+    },
+    {
+        "pk": 63,
+        "model": "auth.permission",
+        "fields": {"codename": "change_customerstatus", "name": "Can change customer status", "content_type": 46}
+    },
+    {
+        "pk": 38,
+        "model": "auth.permission",
+        "fields": {"codename": "change_employee", "name": "Can change employee", "content_type": 34}
+    },
+    {
+        "pk": 42,
+        "model": "auth.permission",
+        "fields": {"codename": "change_employeetype", "name": "Can change employee type", "content_type": 33}
+    },
+    {
+        "pk": 79,
+        "model": "auth.permission",
+        "fields": {"codename": "change_event", "name": "Can change event", "content_type": 77}
+    },
+    {
+        "pk": 92,
+        "model": "auth.permission",
+        "fields": {"codename": "change_eventtype", "name": "Can change event type", "content_type": 75}
+    },
+    {
+        "pk": 32,
+        "model": "auth.permission",
+        "fields": {"codename": "change_facebookuser", "name": "Can change facebook user", "content_type": 29}
+    },
+    {
+        "pk": 6,
+        "model": "auth.permission",
+        "fields": {"codename": "change_group", "name": "Can change group", "content_type": 2}
+    },
+    {
+        "pk": 52,
+        "model": "auth.permission",
+        "fields": {"codename": "change_htmlpage", "name": "Can change html page", "content_type": 45}
+    },
+    {
+        "pk": 80,
+        "model": "auth.permission",
+        "fields": {"codename": "change_htmlpage", "name": "Can change html page", "content_type": 73}
+    },
+    {
+        "pk": 90,
+        "model": "auth.permission",
+        "fields": {"codename": "change_location", "name": "Can change location", "content_type": 74}
+    },
+    {
+        "pk": 28,
+        "model": "auth.permission",
+        "fields": {"codename": "change_logentry", "name": "Can change log entry", "content_type": 25}
+    },
+    {
+        "pk": 5,
+        "model": "auth.permission",
+        "fields": {"codename": "change_message", "name": "Can change message", "content_type": 4}
+    },
+    {
+        "pk": 7,
+        "model": "auth.permission",
+        "fields": {"codename": "change_permission", "name": "Can change permission", "content_type": 1}
+    },
+    {
+        "pk": 72,
+        "model": "auth.permission",
+        "fields": {"codename": "change_product", "name": "Can change product", "content_type": 66}
+    },
+    {
+        "pk": 99,
+        "model": "auth.permission",
+        "fields": {"codename": "change_sale", "name": "Can change sale", "content_type": 98}
+    },
+    {
+        "pk": 102,
+        "model": "auth.permission",
+        "fields": {"codename": "change_salestatus", "name": "Can change sale status", "content_type": 97}
+    },
+    {
+        "pk": 24,
+        "model": "auth.permission",
+        "fields": {"codename": "change_session", "name": "Can change session", "content_type": 21}
+    },
+    {
+        "pk": 69,
+        "model": "auth.permission",
+        "fields": {"codename": "change_suppliername", "name": "Can change supplier name", "content_type": 65}
+    },
+    {
+        "pk": 9,
+        "model": "auth.permission",
+        "fields": {"codename": "change_user", "name": "Can change user", "content_type": 3}
+    },
+    {
+        "pk": 37,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_activity", "name": "Can delete activity", "content_type": 35}
+    },
+    {
+        "pk": 85,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_allocation", "name": "Can delete allocation", "content_type": 78}
+    },
+    {
+        "pk": 83,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_constraint", "name": "Can delete constraint", "content_type": 76}
+    },
+    {
+        "pk": 19,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_contenttype", "name": "Can delete content type", "content_type": 17}
+    },
+    {
+        "pk": 58,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_customer", "name": "Can delete customer", "content_type": 49}
+    },
+    {
+        "pk": 56,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_customeraddress", "name": "Can delete customer address", "content_type": 47}
+    },
+    {
+        "pk": 51,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_customereduinstitute", "name": "Can delete customer edu institute", "content_type": 48}
+    },
+    {
+        "pk": 59,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_customerstatus", "name": "Can delete customer status", "content_type": 46}
+    },
+    {
+        "pk": 41,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_employee", "name": "Can delete employee", "content_type": 34}
+    },
+    {
+        "pk": 44,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_employeetype", "name": "Can delete employee type", "content_type": 33}
+    },
+    {
+        "pk": 81,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_event", "name": "Can delete event", "content_type": 77}
+    },
+    {
+        "pk": 95,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_eventtype", "name": "Can delete event type", "content_type": 75}
+    },
+    {
+        "pk": 31,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_facebookuser", "name": "Can delete facebook user", "content_type": 29}
+    },
+    {
+        "pk": 14,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_group", "name": "Can delete group", "content_type": 2}
+    },
+    {
+        "pk": 54,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_htmlpage", "name": "Can delete html page", "content_type": 45}
+    },
+    {
+        "pk": 84,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_htmlpage", "name": "Can delete html page", "content_type": 73}
+    },
+    {
+        "pk": 89,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_location", "name": "Can delete location", "content_type": 74}
+    },
+    {
+        "pk": 27,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_logentry", "name": "Can delete log entry", "content_type": 25}
+    },
+    {
+        "pk": 11,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_message", "name": "Can delete message", "content_type": 4}
+    },
+    {
+        "pk": 10,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_permission", "name": "Can delete permission", "content_type": 1}
+    },
+    {
+        "pk": 67,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_product", "name": "Can delete product", "content_type": 66}
+    },
+    {
+        "pk": 100,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_sale", "name": "Can delete sale", "content_type": 98}
+    },
+    {
+        "pk": 104,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_salestatus", "name": "Can delete sale status", "content_type": 97}
+    },
+    {
+        "pk": 22,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_session", "name": "Can delete session", "content_type": 21}
+    },
+    {
+        "pk": 68,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_suppliername", "name": "Can delete supplier name", "content_type": 65}
+    },
+    {
+        "pk": 8,
+        "model": "auth.permission",
+        "fields": {"codename": "delete_user", "name": "Can delete user", "content_type": 3}
+    },
+    {
         "pk": 1,
         "model": "auth.user",
-        "fields": {
-            "username": "admin",
-            "first_name": "",
-            "last_name": "",
-            "is_active": true,
-            "is_superuser": true,
-            "is_staff": true,
-            "last_login": "2011-01-05 10:01:19",
-            "password": "sha1$49bfc$49236facb2436f8095ca63e0ecbcf20c507c6df0",
-            "email": "rami.zlingher@gmail.com",
-            "date_joined": "2011-01-05 10:01:15"
-        }
+        "fields": {"username": "admin", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:16:37", "password": "sha1$49bfc$49236facb2436f8095ca63e0ecbcf20c507c6df0", "email": "rami.zlingher@gmail.com", "date_joined": "2011-01-05 10:01:15"}
+    },
+    {
+        "pk": 110,
+        "model": "auth.user",
+        "fields": {"username": "jack", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:50:30", "password": "sha1$52688$85a6e74481cc77a2fdca36f2c03b6f6b53a89026", "email": "", "date_joined": "2011-01-06 07:57:51"}
+    },
+    {
+        "pk": 112,
+        "model": "auth.user",
+        "fields": {"username": "king", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:51:47", "password": "sha1$89b08$e727a87b33cb768b12dcce792ecb1016a0a8e5b1", "email": "", "date_joined": "2011-01-06 07:59:19"}
+    },
+    {
+        "pk": 120,
+        "model": "auth.user",
+        "fields": {"username": "udi", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2011-01-06 08:29:45", "password": "sha1$90656$09d16e0cc0f1f4a1959d658318884e3e46b7f907", "email": "", "date_joined": "2011-01-06 08:29:45"}
     }
 ]

File django_ultrasound/employees/fixtures/initial_data.json

-[{"pk": 54, "model": "employees.employeetype", "fields": {"code": 40, "name": "\u05d9\u05d7\u05e6\u05df"}}, {"pk": 106, "model": "employees.employeetype", "fields": {"code": 20, "name": "\u05de\u05e0\u05d4\u05dc \u05db\u05d5\u05d7 \u05d0\u05d3\u05dd"}}, {"pk": 108, "model": "employees.employeetype", "fields": {"code": 10, "name": "\u05de\u05e0\u05d4\u05dc \u05de\u05d5\u05e2\u05d3\u05d5\u05df"}}, {"pk": 56, "model": "employees.employee", "fields": {"id_number": 1111, "last_update": "2011-01-05 10:08:33", "user": 1, "fb_key": "2222", "boss": null, "employee_type": 54}}, {"pk": 114, "model": "employees.employee", "fields": {"id_number": 91827364, "last_update": "2011-01-06 07:59:43", "user": 112, "fb_key": "100001632266992", "boss": null, "employee_type": 108}}, {"pk": 116, "model": "employees.employee", "fields": {"id_number": 123456789, "last_update": "2011-01-06 07:59:48", "user": 110, "fb_key": "100001761357244", "boss": 114, "employee_type": 106}}, {"pk": 122, "model": "employees.employee", "fields": {"id_number": 25669714, "last_update": "2011-01-06 08:32:02", "user": 120, "fb_key": "502772797", "boss": 114, "employee_type": 54}}, {"pk": 34, "model": "employees.activity", "fields": {"customer": 33, "date_of_activity": "2011-01-05 10:05:41", "activity": 1, "employee": 1, "old_customer_status": null, "new_customer_status": 6}}]
+[
+    {
+        "pk": 1,
+        "model": "auth.user",
+        "fields": {"username": "admin", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:16:37", "password": "sha1$49bfc$49236facb2436f8095ca63e0ecbcf20c507c6df0", "email": "rami.zlingher@gmail.com", "date_joined": "2011-01-05 10:01:15"}
+    },
+    {
+        "pk": 110,
+        "model": "auth.user",
+        "fields": {"username": "jack", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:50:30", "password": "sha1$52688$85a6e74481cc77a2fdca36f2c03b6f6b53a89026", "email": "", "date_joined": "2011-01-06 07:57:51"}
+    },
+    {
+        "pk": 112,
+        "model": "auth.user",
+        "fields": {"username": "king", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2011-01-06 08:51:47", "password": "sha1$89b08$e727a87b33cb768b12dcce792ecb1016a0a8e5b1", "email": "", "date_joined": "2011-01-06 07:59:19"}
+    },
+    {
+        "pk": 120,
+        "model": "auth.user",
+        "fields": {"username": "udi", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2011-01-06 08:29:45", "password": "sha1$90656$09d16e0cc0f1f4a1959d658318884e3e46b7f907", "email": "", "date_joined": "2011-01-06 08:29:45"}
+    },
+    {
+        "pk": 54,
+        "model": "employees.employeetype",
+        "fields": {"code": 40, "name": "\u05d9\u05d7\u05e6\u05df"}
+    },
+    {
+        "pk": 106,
+        "model": "employees.employeetype",
+        "fields": {"code": 20, "name": "\u05de\u05e0\u05d4\u05dc \u05db\u05d5\u05d7 \u05d0\u05d3\u05dd"}
+    },
+    {
+        "pk": 108,
+        "model": "employees.employeetype",
+        "fields": {"code": 10, "name": "\u05de\u05e0\u05d4\u05dc \u05de\u05d5\u05e2\u05d3\u05d5\u05df"}
+    },
+    {
+        "pk": 56,
+        "model": "employees.employee",
+        "fields": {"id_number": 1111, "last_update": "2011-01-05 10:08:33", "user": 1, "fb_key": "2222", "boss": null, "employee_type": 54}
+    },
+    {
+        "pk": 114,
+        "model": "employees.employee",
+        "fields": {"id_number": 91827364, "last_update": "2011-01-06 07:59:43", "user": 112, "fb_key": "100001632266992", "boss": null, "employee_type": 108}
+    },
+    {
+        "pk": 116,
+        "model": "employees.employee",
+        "fields": {"id_number": 123456789, "last_update": "2011-01-06 07:59:48", "user": 110, "fb_key": "100001761357244", "boss": 114, "employee_type": 106}
+    },
+    {
+        "pk": 122,
+        "model": "employees.employee",
+        "fields": {"id_number": 25669714, "last_update": "2011-01-06 08:32:02", "user": 120, "fb_key": "502772797", "boss": 114, "employee_type": 54}
+    },
+    {
+        "pk": 34,
+        "model": "employees.activity",
+        "fields": {"customer": 33, "date_of_activity": "2011-01-05 10:05:41", "activity": 1, "employee": 1, "old_customer_status": null, "new_customer_status": 6}
+    }
+]