Skip to content

Commit

Permalink
Fixes netbox-community#12847 - Include Missing Add buttons to Views
Browse files Browse the repository at this point in the history
Signed-off-by: Sudheesh Singanamalla <[email protected]>
  • Loading branch information
sudheesh001 committed Jun 11, 2023
1 parent 4a88d5e commit a1b7120
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions netbox/dcim/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ class ConsolePortListView(generic.ObjectListView):
filterset = filtersets.ConsolePortFilterSet
filterset_form = forms.ConsolePortFilterForm
table = tables.ConsolePortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(ConsolePort)
Expand Down Expand Up @@ -2257,7 +2257,7 @@ class ConsoleServerPortListView(generic.ObjectListView):
filterset = filtersets.ConsoleServerPortFilterSet
filterset_form = forms.ConsoleServerPortFilterForm
table = tables.ConsoleServerPortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(ConsoleServerPort)
Expand Down Expand Up @@ -2321,7 +2321,7 @@ class PowerPortListView(generic.ObjectListView):
filterset = filtersets.PowerPortFilterSet
filterset_form = forms.PowerPortFilterForm
table = tables.PowerPortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(PowerPort)
Expand Down Expand Up @@ -2385,7 +2385,7 @@ class PowerOutletListView(generic.ObjectListView):
filterset = filtersets.PowerOutletFilterSet
filterset_form = forms.PowerOutletFilterForm
table = tables.PowerOutletTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(PowerOutlet)
Expand Down Expand Up @@ -2449,7 +2449,7 @@ class InterfaceListView(generic.ObjectListView):
filterset = filtersets.InterfaceFilterSet
filterset_form = forms.InterfaceFilterForm
table = tables.InterfaceTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(Interface)
Expand Down Expand Up @@ -2559,7 +2559,7 @@ class FrontPortListView(generic.ObjectListView):
filterset = filtersets.FrontPortFilterSet
filterset_form = forms.FrontPortFilterForm
table = tables.FrontPortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(FrontPort)
Expand Down Expand Up @@ -2623,7 +2623,7 @@ class RearPortListView(generic.ObjectListView):
filterset = filtersets.RearPortFilterSet
filterset_form = forms.RearPortFilterForm
table = tables.RearPortTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(RearPort)
Expand Down Expand Up @@ -2687,7 +2687,7 @@ class ModuleBayListView(generic.ObjectListView):
filterset = filtersets.ModuleBayFilterSet
filterset_form = forms.ModuleBayFilterForm
table = tables.ModuleBayTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(ModuleBay)
Expand Down Expand Up @@ -2743,7 +2743,7 @@ class DeviceBayListView(generic.ObjectListView):
filterset = filtersets.DeviceBayFilterSet
filterset_form = forms.DeviceBayFilterForm
table = tables.DeviceBayTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(DeviceBay)
Expand Down Expand Up @@ -2868,7 +2868,7 @@ class InventoryItemListView(generic.ObjectListView):
filterset = filtersets.InventoryItemFilterSet
filterset_form = forms.InventoryItemFilterForm
table = tables.InventoryItemTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(InventoryItem)
Expand Down
2 changes: 1 addition & 1 deletion netbox/virtualization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class VMInterfaceListView(generic.ObjectListView):
filterset = filtersets.VMInterfaceFilterSet
filterset_form = forms.VMInterfaceFilterForm
table = tables.VMInterfaceTable
actions = ('import', 'export', 'bulk_edit', 'bulk_delete')
actions = ('add', 'import', 'export', 'bulk_edit', 'bulk_delete')


@register_model_view(VMInterface)
Expand Down

0 comments on commit a1b7120

Please sign in to comment.