mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
changes as per review
This commit is contained in:
parent
892f289342
commit
726aab7ea3
@ -143,12 +143,10 @@ class ImageAttachmentFilterForm(SavedFiltersMixin, FilterForm):
|
|||||||
(None, ('q', 'filter_id')),
|
(None, ('q', 'filter_id')),
|
||||||
('Attributes', ('content_type_id', 'name',)),
|
('Attributes', ('content_type_id', 'name',)),
|
||||||
)
|
)
|
||||||
|
|
||||||
content_type_id = ContentTypeChoiceField(
|
content_type_id = ContentTypeChoiceField(
|
||||||
queryset=ContentType.objects.filter(FeatureQuery('custom_fields').get_query()),
|
queryset=ContentType.objects.filter(FeatureQuery('custom_fields').get_query()),
|
||||||
required=False
|
required=False
|
||||||
)
|
)
|
||||||
|
|
||||||
name = forms.CharField(
|
name = forms.CharField(
|
||||||
required=False
|
required=False
|
||||||
)
|
)
|
||||||
|
@ -91,13 +91,10 @@ class ImageAttachmentTable(NetBoxTable):
|
|||||||
id = tables.Column(
|
id = tables.Column(
|
||||||
linkify=False
|
linkify=False
|
||||||
)
|
)
|
||||||
|
|
||||||
content_type = columns.ContentTypeColumn()
|
content_type = columns.ContentTypeColumn()
|
||||||
|
|
||||||
parent = tables.Column(
|
parent = tables.Column(
|
||||||
linkify=True
|
linkify=True
|
||||||
)
|
)
|
||||||
|
|
||||||
size = tables.Column(
|
size = tables.Column(
|
||||||
verbose_name='Size (bytes)'
|
verbose_name='Size (bytes)'
|
||||||
)
|
)
|
||||||
|
@ -290,9 +290,9 @@ CUSTOMIZATION_MENU = Menu(
|
|||||||
get_model_item('extras', 'customfield', _('Custom Fields')),
|
get_model_item('extras', 'customfield', _('Custom Fields')),
|
||||||
get_model_item('extras', 'customlink', _('Custom Links')),
|
get_model_item('extras', 'customlink', _('Custom Links')),
|
||||||
get_model_item('extras', 'exporttemplate', _('Export Templates')),
|
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', 'savedfilter', _('Saved Filters')),
|
||||||
get_model_item('extras', 'tag', 'Tags'),
|
get_model_item('extras', 'tag', 'Tags'),
|
||||||
|
get_model_item('extras', 'imageattachment', _('Image Attachments'), actions=()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MenuGroup(
|
MenuGroup(
|
||||||
|
Loading…
Reference in New Issue
Block a user