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

Fixes #6246: Permit full-length descriptions when creating device components and VM interfaces

jeremystretch 4 лет назад
Родитель
Сommit
396c91f8f7
3 измененных файлов с 10 добавлено и 2 удалено
  1. 8 0
      docs/release-notes/version-2.11.md
  2. 1 1
      netbox/dcim/forms.py
  3. 1 1
      netbox/virtualization/forms.py

+ 8 - 0
docs/release-notes/version-2.11.md

@@ -1,5 +1,13 @@
 # NetBox v2.11
 
+## v2.11.2 (FUTURE)
+
+### Bug Fixes
+
+* [#6246](https://github.com/netbox-community/netbox/issues/6246) - Permit full-length descriptions when creating device components and VM interfaces
+
+---
+
 ## v2.11.1 (2021-04-21)
 
 ### Enhancements

+ 1 - 1
netbox/dcim/forms.py

@@ -2552,7 +2552,7 @@ class ComponentCreateForm(BootstrapMixin, CustomFieldForm, ComponentForm):
         queryset=Device.objects.all()
     )
     description = forms.CharField(
-        max_length=100,
+        max_length=200,
         required=False
     )
     tags = DynamicModelMultipleChoiceField(

+ 1 - 1
netbox/virtualization/forms.py

@@ -683,7 +683,7 @@ class VMInterfaceCreateForm(BootstrapMixin, InterfaceCommonForm):
         label='MAC Address'
     )
     description = forms.CharField(
-        max_length=100,
+        max_length=200,
         required=False
     )
     mode = forms.ChoiceField(