Skip to content

Commit

Permalink
Fixes #9206: Show header for comments field under module & module typ…
Browse files Browse the repository at this point in the history
…e creation views
  • Loading branch information
jeremystretch committed Apr 25, 2022
1 parent e63a191 commit 4f86d6a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [#9151](https://github.com/netbox-community/netbox/issues/9151) - Child prefix counts not annotated on aggregates list under RIR view
* [#9156](https://github.com/netbox-community/netbox/issues/9156) - Fix loading UserConfig data from fixtures
* [#9158](https://github.com/netbox-community/netbox/issues/9158) - Do not list tags field for CSV forms which do not support tag assignment
* [#9206](https://github.com/netbox-community/netbox/issues/9206) - Show header for comments field under module & module type creation views

---

Expand Down
15 changes: 15 additions & 0 deletions netbox/dcim/forms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ class ModuleTypeForm(NetBoxModelForm):
)
comments = CommentField()

fieldsets = (
('Module Type', (
'manufacturer', 'model', 'part_number', 'tags',
)),
)

class Meta:
model = ModuleType
fields = [
Expand Down Expand Up @@ -627,6 +633,15 @@ class ModuleForm(NetBoxModelForm):
help_text="Automatically populate components associated with this module type"
)

fieldsets = (
('Module', (
'device', 'module_bay', 'manufacturer', 'module_type', 'tags',
)),
('Hardware', (
'serial', 'asset_tag', 'replicate_components',
)),
)

class Meta:
model = Module
fields = [
Expand Down

0 comments on commit 4f86d6a

Please sign in to comment.