MCPcopy
hub / github.com/django/django / _get_all_permissions

Function _get_all_permissions

django/contrib/auth/management/__init__.py:18–22  ·  view source on GitHub ↗

Return (codename, name) for all permissions in the given opts.

(opts)

Source from the content-addressed store, hash-verified

16
17
18def _get_all_permissions(opts):
19 """
20 Return (codename, name) for all permissions in the given opts.
21 """
22 return [*_get_builtin_permissions(opts), *opts.permissions]
23
24
25def _get_builtin_permissions(opts):

Callers 1

create_permissionsFunction · 0.85

Calls 1

_get_builtin_permissionsFunction · 0.85

Tested by

no test coverage detected