Преглед на файлове

Fixes #20997: Enable creating permissions for the Owner model (#21009)

Jeremy Stretch преди 1 месец
родител
ревизия
2eb42d4907
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      netbox/users/constants.py

+ 1 - 1
netbox/users/constants.py

@@ -5,7 +5,7 @@ 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'])
+    Q(app_label='users', model__in=['objectpermission', 'token', 'group', 'user', 'owner'])
 )
 
 CONSTRAINT_TOKEN_USER = '$user'