From 726aab7ea3217760a6bfb7782aa0c3cf437d651d Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Fri, 5 May 2023 18:48:58 +0530 Subject: [PATCH] changes as per review --- netbox/extras/forms/filtersets.py | 2 -- netbox/extras/tables/tables.py | 3 --- netbox/netbox/navigation/menu.py | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/netbox/extras/forms/filtersets.py b/netbox/extras/forms/filtersets.py index cffc173fc..fae15d041 100644 --- a/netbox/extras/forms/filtersets.py +++ b/netbox/extras/forms/filtersets.py @@ -143,12 +143,10 @@ class ImageAttachmentFilterForm(SavedFiltersMixin, FilterForm): (None, ('q', 'filter_id')), ('Attributes', ('content_type_id', 'name',)), ) - content_type_id = ContentTypeChoiceField( queryset=ContentType.objects.filter(FeatureQuery('custom_fields').get_query()), required=False ) - name = forms.CharField( required=False ) diff --git a/netbox/extras/tables/tables.py b/netbox/extras/tables/tables.py index be45a1b88..c63a247b0 100644 --- a/netbox/extras/tables/tables.py +++ b/netbox/extras/tables/tables.py @@ -91,13 +91,10 @@ class ImageAttachmentTable(NetBoxTable): id = tables.Column( linkify=False ) - content_type = columns.ContentTypeColumn() - parent = tables.Column( linkify=True ) - size = tables.Column( verbose_name='Size (bytes)' ) diff --git a/netbox/netbox/navigation/menu.py b/netbox/netbox/navigation/menu.py index 828031818..b96c275ea 100644 --- a/netbox/netbox/navigation/menu.py +++ b/netbox/netbox/navigation/menu.py @@ -290,9 +290,9 @@ CUSTOMIZATION_MENU = Menu( get_model_item('extras', 'customfield', _('Custom Fields')), get_model_item('extras', 'customlink', _('Custom Links')), get_model_item('extras', 'exporttemplate', _('Export Templates')), - get_model_item('extras', 'imageattachment', _('Image Attachments'), actions=()), get_model_item('extras', 'savedfilter', _('Saved Filters')), get_model_item('extras', 'tag', 'Tags'), + get_model_item('extras', 'imageattachment', _('Image Attachments'), actions=()), ), ), MenuGroup(