소스 검색

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):