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

Fixes #5072: Add REST API filters for image attachments

This commit is contained in:
Jeremy Stretch
2020-09-02 16:10:07 -04:00
parent d289b26034
commit bbbfc27593
4 changed files with 91 additions and 3 deletions

View File

@@ -140,6 +140,7 @@ class ImageAttachmentViewSet(ModelViewSet):
metadata_class = ContentTypeMetadata
queryset = ImageAttachment.objects.all()
serializer_class = serializers.ImageAttachmentSerializer
filterset_class = filters.ImageAttachmentFilterSet
#