Просмотр исходного кода

fix for #10086 - change capitalization on wireless link table for Interface A, B and Auth Type

Arthur 3 лет назад
Родитель
Сommit
ea1467add7
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      netbox/wireless/models.py

+ 6 - 3
netbox/wireless/models.py

@@ -23,7 +23,8 @@ class WirelessAuthenticationBase(models.Model):
     auth_type = models.CharField(
     auth_type = models.CharField(
         max_length=50,
         max_length=50,
         choices=WirelessAuthTypeChoices,
         choices=WirelessAuthTypeChoices,
-        blank=True
+        blank=True,
+        verbose_name="Auth Type",
     )
     )
     auth_cipher = models.CharField(
     auth_cipher = models.CharField(
         max_length=50,
         max_length=50,
@@ -134,13 +135,15 @@ class WirelessLink(WirelessAuthenticationBase, NetBoxModel):
         to='dcim.Interface',
         to='dcim.Interface',
         limit_choices_to={'type__in': WIRELESS_IFACE_TYPES},
         limit_choices_to={'type__in': WIRELESS_IFACE_TYPES},
         on_delete=models.PROTECT,
         on_delete=models.PROTECT,
-        related_name='+'
+        related_name='+',
+        verbose_name="Interface A",
     )
     )
     interface_b = models.ForeignKey(
     interface_b = models.ForeignKey(
         to='dcim.Interface',
         to='dcim.Interface',
         limit_choices_to={'type__in': WIRELESS_IFACE_TYPES},
         limit_choices_to={'type__in': WIRELESS_IFACE_TYPES},
         on_delete=models.PROTECT,
         on_delete=models.PROTECT,
-        related_name='+'
+        related_name='+',
+        verbose_name="Interface B",
     )
     )
     ssid = models.CharField(
     ssid = models.CharField(
         max_length=SSID_MAX_LENGTH,
         max_length=SSID_MAX_LENGTH,