From bd6ed27ae54c5eea40f66f08045e1519036c5318 Mon Sep 17 00:00:00 2001 From: thomasl Date: Sat, 18 Jan 2025 15:11:57 +0100 Subject: [PATCH] Update 2 files - /apps/permission/fixtures/initial.json - /apps/permission/admin.py --- apps/permission/admin.py | 1 + apps/permission/fixtures/initial.json | 70 +-------------------------- 2 files changed, 2 insertions(+), 69 deletions(-) diff --git a/apps/permission/admin.py b/apps/permission/admin.py index a6fc713c..82f8d4ab 100644 --- a/apps/permission/admin.py +++ b/apps/permission/admin.py @@ -31,3 +31,4 @@ class RoleAdmin(admin.ModelAdmin): Admin customisation for Role """ list_display = ('name', ) + filter_horizontal = ('permissions',) diff --git a/apps/permission/fixtures/initial.json b/apps/permission/fixtures/initial.json index f1a5a50b..00f952cc 100644 --- a/apps/permission/fixtures/initial.json +++ b/apps/permission/fixtures/initial.json @@ -4409,75 +4409,7 @@ 238 ] } - }, - { - "model": "permission.role", - "pk": 23, - "fields": { - "for_club": 10, - "name": "Tr\u00e9sorièr\u22c5e BDA", - "permissions": [ - 33, - 55, - 56, - 57, - 58, - 135, - 143, - 176, - 177, - 178 - ] - } - }, - { - "model": "permission.role", - "pk": 24, - "fields": { - "for_club": 10, - "name": "Respo sortie", - "permissions": [ - 239, - 240, - 241, - 242, - 243 - ] - } - }, - { - "model": "permission.role", - "pk": 25, - "fields": { - "for_club": 267, - "name": "Tr\u00e9sorièr\u22c5e Terre à terre", - "permissions": [ - 33, - 55, - 56, - 57, - 58, - 135, - 143, - 176, - 177, - 178 - ] - } - }, - { - "model": "permission.role", - "pk": 26, - "fields": { - "for_club": 282, - "name": "Tr\u00e9sorièr\u22c5e Gala", - "permissions": [ - 33 - ] - } - }, - - + }, { "model": "wei.weirole", "pk": 12,