mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-21 19:18:44 -06:00
Use ContentTypeChoiceField for all ContentType fields
This commit is contained in:
8
netbox/users/constants.py
Normal file
8
netbox/users/constants.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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'])
|
||||
)
|
||||
Reference in New Issue
Block a user