Explorar o código

Fixes #8714: Remove label from comments form field

jeremystretch %!s(int64=4) %!d(string=hai) anos
pai
achega
d9696ae34c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      netbox/utilities/forms/fields/fields.py

+ 2 - 2
netbox/utilities/forms/fields/fields.py

@@ -31,8 +31,8 @@ class CommentField(forms.CharField):
         Markdown</a> syntax is supported
     """
 
-    def __init__(self, *, help_text=help_text, required=False, **kwargs):
-        super().__init__(help_text=help_text, required=required, **kwargs)
+    def __init__(self, *, label='', help_text=help_text, required=False, **kwargs):
+        super().__init__(label=label, help_text=help_text, required=required, **kwargs)
 
 
 class SlugField(forms.SlugField):