1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge pull request #10120 from arthanson/art-10086

fix for #10086 - change capitalization on wireless link table for Interface A, B and Auth Type
This commit is contained in:
Jeremy Stretch
2022-08-24 08:46:24 -04:00
committed by GitHub

View File

@ -24,7 +24,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,
@ -135,13 +136,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,