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

Fixes #22340: Correct display of allowed IPs for tokens in web UI

Jeremy Stretch преди 1 месец
родител
ревизия
5b08541242
променени са 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):