1. bjunix
  2. django-rbac

Source

django-rbac / example / myapp / fixtures / initial_data.json

[{"pk": 4, "model": "auth.permission", "fields": {"codename": "add_group", "name": "Can add group", "content_type": 2}}, {"pk": 10, "model": "auth.permission", "fields": {"codename": "add_message", "name": "Can add message", "content_type": 4}}, {"pk": 1, "model": "auth.permission", "fields": {"codename": "add_permission", "name": "Can add permission", "content_type": 1}}, {"pk": 7, "model": "auth.permission", "fields": {"codename": "add_user", "name": "Can add user", "content_type": 3}}, {"pk": 5, "model": "auth.permission", "fields": {"codename": "change_group", "name": "Can change group", "content_type": 2}}, {"pk": 11, "model": "auth.permission", "fields": {"codename": "change_message", "name": "Can change message", "content_type": 4}}, {"pk": 2, "model": "auth.permission", "fields": {"codename": "change_permission", "name": "Can change permission", "content_type": 1}}, {"pk": 8, "model": "auth.permission", "fields": {"codename": "change_user", "name": "Can change user", "content_type": 3}}, {"pk": 6, "model": "auth.permission", "fields": {"codename": "delete_group", "name": "Can delete group", "content_type": 2}}, {"pk": 12, "model": "auth.permission", "fields": {"codename": "delete_message", "name": "Can delete message", "content_type": 4}}, {"pk": 3, "model": "auth.permission", "fields": {"codename": "delete_permission", "name": "Can delete permission", "content_type": 1}}, {"pk": 9, "model": "auth.permission", "fields": {"codename": "delete_user", "name": "Can delete user", "content_type": 3}}, {"pk": 13, "model": "auth.permission", "fields": {"codename": "add_contenttype", "name": "Can add content type", "content_type": 5}}, {"pk": 14, "model": "auth.permission", "fields": {"codename": "change_contenttype", "name": "Can change content type", "content_type": 5}}, {"pk": 15, "model": "auth.permission", "fields": {"codename": "delete_contenttype", "name": "Can delete content type", "content_type": 5}}, {"pk": 31, "model": "auth.permission", "fields": {"codename": "add_rbacgenericpermission", "name": "Can add rbac generic permission", "content_type": 11}}, {"pk": 22, "model": "auth.permission", "fields": {"codename": "add_rbacoperation", "name": "Can add rbac operation", "content_type": 8}}, {"pk": 28, "model": "auth.permission", "fields": {"codename": "add_rbacpermission", "name": "Can add rbac permission", "content_type": 10}}, {"pk": 25, "model": "auth.permission", "fields": {"codename": "add_rbacrole", "name": "Can add rbac role", "content_type": 9}}, {"pk": 32, "model": "auth.permission", "fields": {"codename": "change_rbacgenericpermission", "name": "Can change rbac generic permission", "content_type": 11}}, {"pk": 23, "model": "auth.permission", "fields": {"codename": "change_rbacoperation", "name": "Can change rbac operation", "content_type": 8}}, {"pk": 29, "model": "auth.permission", "fields": {"codename": "change_rbacpermission", "name": "Can change rbac permission", "content_type": 10}}, {"pk": 26, "model": "auth.permission", "fields": {"codename": "change_rbacrole", "name": "Can change rbac role", "content_type": 9}}, {"pk": 33, "model": "auth.permission", "fields": {"codename": "delete_rbacgenericpermission", "name": "Can delete rbac generic permission", "content_type": 11}}, {"pk": 24, "model": "auth.permission", "fields": {"codename": "delete_rbacoperation", "name": "Can delete rbac operation", "content_type": 8}}, {"pk": 30, "model": "auth.permission", "fields": {"codename": "delete_rbacpermission", "name": "Can delete rbac permission", "content_type": 10}}, {"pk": 27, "model": "auth.permission", "fields": {"codename": "delete_rbacrole", "name": "Can delete rbac role", "content_type": 9}}, {"pk": 16, "model": "auth.permission", "fields": {"codename": "add_session", "name": "Can add session", "content_type": 6}}, {"pk": 17, "model": "auth.permission", "fields": {"codename": "change_session", "name": "Can change session", "content_type": 6}}, {"pk": 18, "model": "auth.permission", "fields": {"codename": "delete_session", "name": "Can delete session", "content_type": 6}}, {"pk": 19, "model": "auth.permission", "fields": {"codename": "add_site", "name": "Can add site", "content_type": 7}}, {"pk": 20, "model": "auth.permission", "fields": {"codename": "change_site", "name": "Can change site", "content_type": 7}}, {"pk": 21, "model": "auth.permission", "fields": {"codename": "delete_site", "name": "Can delete site", "content_type": 7}}, {"pk": 1, "model": "auth.group", "fields": {"name": "punks", "permissions": []}}, {"pk": 2, "model": "auth.group", "fields": {"name": "rockers", "permissions": []}}, {"pk": 1, "model": "auth.user", "fields": {"username": "nabuco", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2009-11-01 10:36:24", "groups": [1, 2], "user_permissions": [], "password": "", "email": "", "date_joined": "2009-11-01 10:36:24"}}, {"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": 4, "model": "contenttypes.contenttype", "fields": {"model": "message", "name": "message", "app_label": "auth"}}, {"pk": 1, "model": "contenttypes.contenttype", "fields": {"model": "permission", "name": "permission", "app_label": "auth"}}, {"pk": 11, "model": "contenttypes.contenttype", "fields": {"model": "rbacgenericpermission", "name": "rbac generic permission", "app_label": "rbac"}}, {"pk": 8, "model": "contenttypes.contenttype", "fields": {"model": "rbacoperation", "name": "rbac operation", "app_label": "rbac"}}, {"pk": 10, "model": "contenttypes.contenttype", "fields": {"model": "rbacpermission", "name": "rbac permission", "app_label": "rbac"}}, {"pk": 9, "model": "contenttypes.contenttype", "fields": {"model": "rbacrole", "name": "rbac role", "app_label": "rbac"}}, {"pk": 6, "model": "contenttypes.contenttype", "fields": {"model": "session", "name": "session", "app_label": "sessions"}}, {"pk": 7, "model": "contenttypes.contenttype", "fields": {"model": "site", "name": "site", "app_label": "sites"}}, {"pk": 3, "model": "contenttypes.contenttype", "fields": {"model": "user", "name": "user", "app_label": "auth"}}, {"pk": "2d8494b403b039d5783d29fb6690c76f", "model": "sessions.session", "fields": {"expire_date": "2009-11-15 10:51:24", "session_data": "gAJ9cQEuZDQ1YTEzZjVkNjJlOTRkZTJmMjRmMTRmZDgzNGY3NzM=\n"}}, {"pk": 1, "model": "sites.site", "fields": {"domain": "example.com", "name": "example.com"}}, {"pk": 1, "model": "rbac.rbacoperation", "fields": {"name": "display", "desc": ""}}, {"pk": 1, "model": "rbac.rbacrole", "fields": {"name": "family", "desc": ""}}, {"pk": 2, "model": "rbac.rbacrole", "fields": {"name": "friends", "desc": ""}}, {"pk": 3, "model": "rbac.rbacrole", "fields": {"name": "coworkers", "desc": ""}}, {"pk": 1, "model": "rbac.rbacpermission", "fields": {"roles": [1, 2, 3], "owner_ct": 3, "object_id": 1, "operation": 1, "object_ct": 3, "owner_id": 1}}, {"pk": 1, "model": "rbac.rbacgenericpermission", "fields": {"roles": [1, 2, 3], "operation": 1, "owner_ct": 3, "content_type": 2, "owner_id": 1}}]