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

@ -150,6 +150,7 @@ Where it is desired to limit the range of available VLANs within a group, users
### Bug Fixes (From Beta2)
* [#8658](https://github.com/netbox-community/netbox/issues/8658) - Fix display of assigned components under inventory item lists
* [#8838](https://github.com/netbox-community/netbox/issues/8838) - Fix FieldError exception during global search
* [#8845](https://github.com/netbox-community/netbox/issues/8845) - Correct default ASN formatting in table
* [#8869](https://github.com/netbox-community/netbox/issues/8869) - Fix NoReverseMatch exception when displaying tag w/assignments

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 = []