1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #8658: Fix display of assigned components under inventory item lists

This commit is contained in:
jeremystretch
2022-04-04 14:40:22 -04:00
parent e2b6d69596
commit ea88b040ec
3 changed files with 3 additions and 3 deletions

View File

@@ -772,7 +772,6 @@ class InventoryItemTable(DeviceComponentTable):
linkify=True
)
component = tables.Column(
accessor=Accessor('component'),
orderable=False,
linkify=True
)

View File

@@ -545,7 +545,7 @@ class ComponentCreateView(GetReturnURLMixin, BaseObjectView):
def get(self, request):
form, model_form = self.initialize_forms(request)
instance = self.alter_object(self.queryset.model, request)
instance = self.alter_object(self.queryset.model(), request)
return render(request, self.template_name, {
'object': instance,
@@ -557,7 +557,7 @@ class ComponentCreateView(GetReturnURLMixin, BaseObjectView):
def post(self, request):
logger = logging.getLogger('netbox.views.ComponentCreateView')
form, model_form = self.initialize_forms(request)
instance = self.alter_object(self.queryset.model, request)
instance = self.alter_object(self.queryset.model(), request)
if form.is_valid():
new_components = []