Remove labels on CommentField

This commit is contained in:
Jeremy Stretch 2023-07-31 11:57:21 -04:00
parent 6647a8a40c
commit 2d5d89216d
7 changed files with 32 additions and 96 deletions

View File

@ -30,9 +30,7 @@ class ProviderBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Provider
fieldsets = (
@ -54,9 +52,7 @@ class ProviderAccountBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = ProviderAccount
fieldsets = (
@ -83,9 +79,7 @@ class ProviderNetworkBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = ProviderNetwork
fieldsets = (
@ -162,9 +156,7 @@ class CircuitBulkEditForm(NetBoxModelBulkEditForm):
max_length=100,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Circuit
fieldsets = (

View File

@ -30,9 +30,7 @@ class DataSourceBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
parameters = forms.JSONField(
label=_('Parameters'),
required=False

View File

@ -150,9 +150,7 @@ class SiteBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Site
fieldsets = (
@ -339,9 +337,7 @@ class RackBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Rack
fieldsets = (
@ -376,9 +372,7 @@ class RackReservationBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = RackReservation
fieldsets = (
@ -447,9 +441,7 @@ class DeviceTypeBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = DeviceType
fieldsets = (
@ -485,9 +477,7 @@ class ModuleTypeBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = ModuleType
fieldsets = (
@ -616,9 +606,7 @@ class DeviceBulkEditForm(NetBoxModelBulkEditForm):
queryset=ConfigTemplate.objects.all(),
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Device
fieldsets = (
@ -662,9 +650,7 @@ class ModuleBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Module
fieldsets = (
@ -716,9 +702,7 @@ class CableBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Cable
fieldsets = (
@ -741,9 +725,7 @@ class VirtualChassisBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = VirtualChassis
fieldsets = (
@ -791,9 +773,7 @@ class PowerPanelBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = PowerPanel
fieldsets = (
@ -863,9 +843,7 @@ class PowerFeedBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = PowerFeed
fieldsets = (

View File

@ -51,9 +51,7 @@ class VRFBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = VRF
fieldsets = (
@ -73,9 +71,7 @@ class RouteTargetBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = RouteTarget
fieldsets = (
@ -148,9 +144,7 @@ class ASNBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = ASN
fieldsets = (
@ -179,9 +173,7 @@ class AggregateBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Aggregate
fieldsets = (
@ -269,9 +261,7 @@ class PrefixBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Prefix
fieldsets = (
@ -315,9 +305,7 @@ class IPRangeBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = IPRange
fieldsets = (
@ -365,9 +353,7 @@ class IPAddressBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = IPAddress
fieldsets = (
@ -410,9 +396,7 @@ class FHRPGroupBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = FHRPGroup
fieldsets = (
@ -501,9 +485,7 @@ class VLANBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = VLAN
fieldsets = (
@ -534,9 +516,7 @@ class ServiceTemplateBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = ServiceTemplate
fieldsets = (
@ -565,9 +545,7 @@ class L2VPNBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = L2VPN
fieldsets = (

View File

@ -122,9 +122,7 @@ class ContactBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Contact
fieldsets = (

View File

@ -97,9 +97,7 @@ class ClusterBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = Cluster
fieldsets = (
@ -176,9 +174,7 @@ class VirtualMachineBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = VirtualMachine
fieldsets = (

View File

@ -82,9 +82,7 @@ class WirelessLANBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = WirelessLAN
fieldsets = (
@ -131,9 +129,7 @@ class WirelessLinkBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
comments = CommentField(
label=_('Comments')
)
comments = CommentField()
model = WirelessLink
fieldsets = (