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

Merge pull request #22365 from netbox-community/22340-token-allowed_ips-list

Fixes #22340: Correct display of allowed IPs for tokens in web UI
bctiemann преди 1 месец
родител
ревизия
b1ebd93349
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      netbox/users/ui/panels.py

+ 1 - 1
netbox/users/ui/panels.py

@@ -14,7 +14,7 @@ class TokenPanel(panels.ObjectAttributesPanel):
     write_enabled = attrs.BooleanAttr('write_enabled')
     expires = attrs.TextAttr('expires')
     last_used = attrs.TextAttr('last_used')
-    allowed_ips = attrs.TextAttr('allowed_ips')
+    allowed_ips = attrs.ArrayAttr('allowed_ips', label=_('Allowed IPs'))
 
 
 class TokenExamplePanel(panels.Panel):