Add missing fixtures.
This commit is contained in:
parent
2840d549dd
commit
407bb7811c
|
@ -0,0 +1 @@
|
|||
[{"pk": 10, "model": "contenttypes.contenttype", "fields": {"model": "action", "name": "action", "app_label": "acs"}}, {"pk": 11, "model": "contenttypes.contenttype", "fields": {"model": "activity", "name": "activity", "app_label": "acs"}}, {"pk": 5, "model": "contenttypes.contenttype", "fields": {"model": "contenttype", "name": "content type", "app_label": "contenttypes"}}, {"pk": 2, "model": "contenttypes.contenttype", "fields": {"model": "group", "name": "group", "app_label": "auth"}}, {"pk": 7, "model": "contenttypes.contenttype", "fields": {"model": "logentry", "name": "log entry", "app_label": "admin"}}, {"pk": 4, "model": "contenttypes.contenttype", "fields": {"model": "message", "name": "message", "app_label": "auth"}}, {"pk": 8, "model": "contenttypes.contenttype", "fields": {"model": "namespace", "name": "namespace", "app_label": "acs"}}, {"pk": 12, "model": "contenttypes.contenttype", "fields": {"model": "acsobject", "name": "object", "app_label": "acs"}}, {"pk": 1, "model": "contenttypes.contenttype", "fields": {"model": "permission", "name": "permission", "app_label": "auth"}}, {"pk": 15, "model": "contenttypes.contenttype", "fields": {"model": "acspermission", "name": "permission", "app_label": "acs"}}, {"pk": 14, "model": "contenttypes.contenttype", "fields": {"model": "acspermission2", "name": "permission2", "app_label": "acs"}}, {"pk": 9, "model": "contenttypes.contenttype", "fields": {"model": "role", "name": "role", "app_label": "acs"}}, {"pk": 6, "model": "contenttypes.contenttype", "fields": {"model": "session", "name": "session", "app_label": "sessions"}}, {"pk": 3, "model": "contenttypes.contenttype", "fields": {"model": "user", "name": "user", "app_label": "auth"}}, {"pk": 13, "model": "contenttypes.contenttype", "fields": {"model": "view", "name": "view", "app_label": "acs"}}]
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
{
|
||||
"fields": {
|
||||
"name": "Default"
|
||||
},
|
||||
"model": "acs.namespace",
|
||||
"pk": 1
|
||||
}
|
||||
]
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,7 @@
|
|||
import json
|
||||
json_data=open('initial_data.json')
|
||||
data = json.load(json_data)
|
||||
d = json.dumps(data, sort_keys=True, indent=4)
|
||||
print(d)
|
||||
json_data.close()
|
||||
|
|
@ -0,0 +1,341 @@
|
|||
[
|
||||
{
|
||||
"fields": {
|
||||
"date_joined": "2011-01-17 13:13:39",
|
||||
"email": "",
|
||||
"first_name": "",
|
||||
"groups": [],
|
||||
"is_active": true,
|
||||
"is_staff": false,
|
||||
"is_superuser": false,
|
||||
"last_login": "2011-01-18 14:19:16",
|
||||
"last_name": "",
|
||||
"password": "sha1$5fb11$a2a2f4543bfecff069fcb3cf08170a8e94053b47",
|
||||
"user_permissions": [],
|
||||
"username": "user1"
|
||||
},
|
||||
"model": "auth.user",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"date_joined": "2011-01-17 13:18:17",
|
||||
"email": "",
|
||||
"first_name": "",
|
||||
"groups": [],
|
||||
"is_active": true,
|
||||
"is_staff": false,
|
||||
"is_superuser": false,
|
||||
"last_login": "2011-01-17 13:18:17",
|
||||
"last_name": "",
|
||||
"password": "sha1$3f6e9$750a62fb9e480280576d1f05c4c24ad67fc2f36e",
|
||||
"user_permissions": [],
|
||||
"username": "user2"
|
||||
},
|
||||
"model": "auth.user",
|
||||
"pk": 3
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"date_joined": "2011-01-17 13:18:30",
|
||||
"email": "",
|
||||
"first_name": "",
|
||||
"groups": [],
|
||||
"is_active": true,
|
||||
"is_staff": false,
|
||||
"is_superuser": false,
|
||||
"last_login": "2011-01-17 13:18:30",
|
||||
"last_name": "",
|
||||
"password": "sha1$77cda$575ea2f4e36d2078d667d24d4aed3eb0f279b5f3",
|
||||
"user_permissions": [],
|
||||
"username": "user3"
|
||||
},
|
||||
"model": "auth.user",
|
||||
"pk": 4
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role3",
|
||||
"roles": [
|
||||
5
|
||||
],
|
||||
"users": [
|
||||
3
|
||||
]
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role2",
|
||||
"roles": [
|
||||
1,
|
||||
4
|
||||
],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role1",
|
||||
"roles": [
|
||||
2
|
||||
],
|
||||
"users": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 3
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role4",
|
||||
"roles": [
|
||||
5,
|
||||
8
|
||||
],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 4
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role5",
|
||||
"roles": [
|
||||
7
|
||||
],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 5
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role7",
|
||||
"roles": [
|
||||
8
|
||||
],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 6
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role6",
|
||||
"roles": [
|
||||
6
|
||||
],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 7
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "role8",
|
||||
"roles": [],
|
||||
"users": []
|
||||
},
|
||||
"model": "acs.role",
|
||||
"pk": 8
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "action1"
|
||||
},
|
||||
"model": "acs.action",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "action2"
|
||||
},
|
||||
"model": "acs.action",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "action3"
|
||||
},
|
||||
"model": "acs.action",
|
||||
"pk": 3
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"actions": [
|
||||
2
|
||||
],
|
||||
"activities": [],
|
||||
"name": "activity2"
|
||||
},
|
||||
"model": "acs.activity",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"actions": [
|
||||
3
|
||||
],
|
||||
"activities": [
|
||||
1
|
||||
],
|
||||
"name": "activity1"
|
||||
},
|
||||
"model": "acs.activity",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "objet1"
|
||||
},
|
||||
"model": "acs.acsobject",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "objet2"
|
||||
},
|
||||
"model": "acs.acsobject",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"name": "objet3"
|
||||
},
|
||||
"model": "acs.acsobject",
|
||||
"pk": 3
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"acs_objects": [
|
||||
2
|
||||
],
|
||||
"actions": [],
|
||||
"activities": [],
|
||||
"name": "view1",
|
||||
"roles": [],
|
||||
"users": [],
|
||||
"views": [
|
||||
2
|
||||
]
|
||||
},
|
||||
"model": "acs.view",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"acs_objects": [
|
||||
3
|
||||
],
|
||||
"actions": [],
|
||||
"activities": [],
|
||||
"name": "view2",
|
||||
"roles": [],
|
||||
"users": [],
|
||||
"views": []
|
||||
},
|
||||
"model": "acs.view",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"how_action": 1,
|
||||
"how_activity": null,
|
||||
"select_how": "Action",
|
||||
"select_what": "AcsObject",
|
||||
"select_who": "Role",
|
||||
"what_acs_object": 1,
|
||||
"what_action": null,
|
||||
"what_activity": null,
|
||||
"what_role": null,
|
||||
"what_user": null,
|
||||
"what_view": null,
|
||||
"who_role": 1,
|
||||
"who_user": null
|
||||
},
|
||||
"model": "acs.acspermission",
|
||||
"pk": 1
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"how_action": 1,
|
||||
"how_activity": null,
|
||||
"select_how": "Action",
|
||||
"select_what": "AcsObject",
|
||||
"select_who": "User",
|
||||
"what_acs_object": 1,
|
||||
"what_action": null,
|
||||
"what_activity": null,
|
||||
"what_role": null,
|
||||
"what_user": null,
|
||||
"what_view": null,
|
||||
"who_role": null,
|
||||
"who_user": 4
|
||||
},
|
||||
"model": "acs.acspermission",
|
||||
"pk": 2
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"how_action": null,
|
||||
"how_activity": 2,
|
||||
"select_how": "Activity",
|
||||
"select_what": "AcsObject",
|
||||
"select_who": "Role",
|
||||
"what_acs_object": 1,
|
||||
"what_action": null,
|
||||
"what_activity": null,
|
||||
"what_role": null,
|
||||
"what_user": null,
|
||||
"what_view": null,
|
||||
"who_role": 1,
|
||||
"who_user": null
|
||||
},
|
||||
"model": "acs.acspermission",
|
||||
"pk": 3
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"how_action": null,
|
||||
"how_activity": 1,
|
||||
"select_how": "Activity",
|
||||
"select_what": "AcsObject",
|
||||
"select_who": "User",
|
||||
"what_acs_object": 1,
|
||||
"what_action": null,
|
||||
"what_activity": null,
|
||||
"what_role": null,
|
||||
"what_user": null,
|
||||
"what_view": null,
|
||||
"who_role": null,
|
||||
"who_user": 4
|
||||
},
|
||||
"model": "acs.acspermission",
|
||||
"pk": 4
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"how_action": null,
|
||||
"how_activity": 2,
|
||||
"select_how": "Activity",
|
||||
"select_what": "View",
|
||||
"select_who": "Role",
|
||||
"what_acs_object": null,
|
||||
"what_action": null,
|
||||
"what_activity": null,
|
||||
"what_role": null,
|
||||
"what_user": null,
|
||||
"what_view": 1,
|
||||
"who_role": 2,
|
||||
"who_user": null
|
||||
},
|
||||
"model": "acs.acspermission",
|
||||
"pk": 5
|
||||
}
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{"pk": 1, "model": "acs.namespace", "fields": {"name": "Default"}},
|
||||
{"pk": 1, "model": "acs.action", "fields": {"namespace": 1, "name": "administration"}},
|
||||
{"pk": 1, "model": "acs.view", "fields": {"acs_objects": [], "users": [1], "roles": [], "views": [], "namespace": 1, "actions": [1], "activities": [], "name": "global_admin_view"}},
|
||||
{"pk": 1, "model": "acs.acspermission", "fields": {"content_type_what": 15, "object_id_how": 1, "object_id_what": 1, "content_type_who": 3, "object_id_who": 1, "content_type_how": 11}}
|
||||
]
|
File diff suppressed because one or more lines are too long
Reference in New Issue