Explorar el Código

Fixes #8714: Remove label from comments form field

jeremystretch hace 4 años
padre
commit
d9696ae34c
Se han modificado 1 ficheros con 2 adiciones y 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):