소스 검색

Fixes #15111: Correct typo in error message

teapot 2 년 전
부모
커밋
c7ae2db8e3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/dcim/models/devices.py

+ 1 - 1
netbox/dcim/models/devices.py

@@ -875,7 +875,7 @@ class Device(
             if self.position and self.device_type.u_height == 0:
             if self.position and self.device_type.u_height == 0:
                 raise ValidationError({
                 raise ValidationError({
                     'position': _(
                     'position': _(
-                        "A U0 device type ({device_type}) cannot be assigned to a rack position."
+                        "A 0U device type ({device_type}) cannot be assigned to a rack position."
                     ).format(device_type=self.device_type)
                     ).format(device_type=self.device_type)
                 })
                 })