В приведенном ниже запросе я получаю список всех разрешений.
routines = (
Permission.objects.select_related("content_type")
.values("id", "name", "content_type__app_label", "content_type__model", )
.order_by("content_type__app_label")
)
Возврат запроса:
accounts | accountsroutine | Can add accounts routine
accounts | accountsroutine | Can change accounts routine
accounts | accountsroutine | Can delete accounts routine
accounts | accountsroutine | Can view accounts routine
Мне нужно изменить этот запрос, чтобы исключить из него разрешения ужепредоставляется определенной группе.Как сделать?