mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
11 lines
324 B
Python
11 lines
324 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='auth', model__in=['group', 'user']) |
|
|
Q(app_label='users', model__in=['objectpermission', 'token'])
|
|
)
|
|
|
|
CONSTRAINT_TOKEN_USER = '$user'
|