mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-11 02:49:35 -06:00
* 16138 change view perms * 16138 add migration of group perms * 16138 update users and groups in perm selection
10 lines
286 B
Python
10 lines
286 B
Python
from django.db.models import Q
|
|
|
|
|
|
OBJECTPERMISSION_OBJECT_TYPES = Q(
|
|
~Q(app_label__in=['account', 'admin', 'auth', 'contenttypes', 'sessions', 'taggit', 'users']) |
|
|
Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user'])
|
|
)
|
|
|
|
CONSTRAINT_TOKEN_USER = '$user'
|