mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
Undo unrelated work
This commit is contained in:
parent
62315161af
commit
e763207181
@ -913,13 +913,6 @@ class ModularComponentTemplateForm(ComponentTemplateForm):
|
|||||||
if self.instance.pk:
|
if self.instance.pk:
|
||||||
self.fields['module_type'].disabled = True
|
self.fields['module_type'].disabled = True
|
||||||
|
|
||||||
# Reset help_text to the value from the model field, if it has been overwritten with ExpandableNameField
|
|
||||||
for field in self.fields:
|
|
||||||
model_help_text = getattr(self._meta.model, field).field.help_text
|
|
||||||
if self.fields[field].help_text and model_help_text:
|
|
||||||
self.fields[field].help_text += ' '
|
|
||||||
self.fields[field].help_text += model_help_text
|
|
||||||
|
|
||||||
|
|
||||||
class ConsolePortTemplateForm(ModularComponentTemplateForm):
|
class ConsolePortTemplateForm(ModularComponentTemplateForm):
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
|
Loading…
Reference in New Issue
Block a user