Django-suit, add in Roles for specific classes site, slice, deployment, planetstack, change admin to leverage suit options
diff --git a/planetstack/core/fixtures/initial_data.json b/planetstack/core/fixtures/initial_data.json
index a86728a..f034820 100644
--- a/planetstack/core/fixtures/initial_data.json
+++ b/planetstack/core/fixtures/initial_data.json
@@ -314,5 +314,229 @@
"maxDuration": 8760,
"enacted": null
}
+},
+{
+ "pk": 1,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:35:50.572Z",
+ "description": "PlanetStack Application Administrator",
+ "created": "2013-07-30T10:30:28.633Z",
+ "content_type": 8,
+ "role_type": "Admin",
+ "enacted": null
+ }
+},
+{
+ "pk": 2,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:36:30.174Z",
+ "description": "User level role for PlanetStack Application",
+ "created": "2013-07-30T10:31:02.627Z",
+ "content_type": 8,
+ "role_type": "Default",
+ "enacted": null
+ }
+},
+{
+ "pk": 3,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:36:07.877Z",
+ "description": "Administrative role for a Slice",
+ "created": "2013-07-30T10:31:25.829Z",
+ "content_type": 21,
+ "role_type": "Admin",
+ "enacted": null
+ }
+},
+{
+ "pk": 4,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:36:20.679Z",
+ "description": "User level access for a particular Slice",
+ "created": "2013-07-30T10:31:48.791Z",
+ "content_type": 21,
+ "role_type": "Default",
+ "enacted": null
+ }
+},
+{
+ "pk": 5,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:35:59.388Z",
+ "description": "Administrator role for a particular Site",
+ "created": "2013-07-30T10:32:20.600Z",
+ "content_type": 15,
+ "role_type": "Admin",
+ "enacted": null
+ }
+},
+{
+ "pk": 6,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:34:39.494Z",
+ "description": "Principal Investigator for a particular Site",
+ "created": "2013-07-30T10:34:39.494Z",
+ "content_type": 15,
+ "role_type": "PI",
+ "enacted": null
+ }
+},
+{
+ "pk": 7,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:35:27.633Z",
+ "description": "Technical support for a particular Site. Allows for Read/Write access to a Site's Nodes.",
+ "created": "2013-07-30T10:35:27.633Z",
+ "content_type": 15,
+ "role_type": "Tech",
+ "enacted": null
+ }
+},
+{
+ "pk": 8,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:38:04.554Z",
+ "description": "Responsibility for a particular Site's accounting and invoices.",
+ "created": "2013-07-30T10:38:04.554Z",
+ "content_type": 15,
+ "role_type": "Billing",
+ "enacted": null
+ }
+},
+{
+ "pk": 9,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:39:07.062Z",
+ "description": "Default access for a particular Site which allows for Read-only access to the Site's objects.",
+ "created": "2013-07-30T10:39:07.062Z",
+ "content_type": 15,
+ "role_type": "Default",
+ "enacted": null
+ }
+},
+{
+ "pk": 10,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T10:39:55.479Z",
+ "description": "Represents the Site through which a particular user is managed through.",
+ "created": "2013-07-30T10:39:55.479Z",
+ "content_type": 15,
+ "role_type": "Homed",
+ "enacted": null
+ }
+},
+{
+ "pk": 11,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T17:35:59.815Z",
+ "description": "Administrative responsibility for a particular Deployment.",
+ "created": "2013-07-30T17:35:59.815Z",
+ "content_type": 9,
+ "role_type": "Admin",
+ "enacted": null
+ }
+},
+{
+ "pk": 12,
+ "model": "core.role",
+ "fields": {
+ "updated": "2013-07-30T17:36:54.728Z",
+ "description": "Default access for a particular Deployment.",
+ "created": "2013-07-30T17:36:54.728Z",
+ "content_type": 9,
+ "role_type": "Default",
+ "enacted": null
+ }
+},
+{
+ "pk": 1,
+ "model": "core.planetstackrole",
+ "fields": {
+ "updated": "2013-09-03T11:47:42.611Z",
+ "enacted": "2013-09-03T11:47:51Z",
+ "role": "admin",
+ "created": "2013-09-03T11:47:42.611Z"
+ }
+},
+{
+ "pk": 1,
+ "model": "core.siterole",
+ "fields": {
+ "updated": "2013-09-03T11:48:34.966Z",
+ "enacted": null,
+ "role": "admin",
+ "created": "2013-09-03T11:48:34.966Z"
+ }
+},
+{
+ "pk": 2,
+ "model": "core.siterole",
+ "fields": {
+ "updated": "2013-09-03T11:48:49.480Z",
+ "enacted": null,
+ "role": "pi",
+ "created": "2013-09-03T11:48:49.480Z"
+ }
+},
+{
+ "pk": 3,
+ "model": "core.siterole",
+ "fields": {
+ "updated": "2013-09-03T11:49:03.678Z",
+ "enacted": null,
+ "role": "tech",
+ "created": "2013-09-03T11:49:03.678Z"
+ }
+},
+{
+ "pk": 4,
+ "model": "core.siterole",
+ "fields": {
+ "updated": "2013-09-03T11:49:17.254Z",
+ "enacted": null,
+ "role": "billing",
+ "created": "2013-09-03T11:49:17.254Z"
+ }
+},
+{
+ "pk": 1,
+ "model": "core.slicerole",
+ "fields": {
+ "updated": "2013-09-03T11:48:02.080Z",
+ "enacted": null,
+ "role": "admin",
+ "created": "2013-09-03T11:48:02.080Z"
+ }
+},
+{
+ "pk": 2,
+ "model": "core.slicerole",
+ "fields": {
+ "updated": "2013-09-03T11:48:17.688Z",
+ "enacted": null,
+ "role": "default",
+ "created": "2013-09-03T11:48:17.688Z"
+ }
+},
+{
+ "pk": 1,
+ "model": "core.deploymentrole",
+ "fields": {
+ "updated": "2013-09-03T11:48:02.080Z",
+ "enacted": null,
+ "role": "admin",
+ "created": "2013-09-03T11:48:02.080Z"
+ }
}
]