mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
9 lines
280 B
Python
9 lines
280 B
Python
from django.db.models import Q
|
|
|
|
|
|
OBJECTPERMISSION_OBJECT_TYPES = Q(
|
|
~Q(app_label__in=['admin', 'auth', 'contenttypes', 'sessions', 'taggit', 'users']) |
|
|
Q(app_label='auth', model__in=['group', 'user']) |
|
|
Q(app_label='users', model__in=['objectpermission', 'token'])
|
|
)
|