From 0e4911a575939684c614fdede6dd29c9b6d16882 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 29 Aug 2022 11:17:31 -0400 Subject: [PATCH] Fixes #10181: Restore MultiPartParser (regression from #10031) --- docs/release-notes/version-3.3.md | 1 + netbox/netbox/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index 42d043e8f..b5555af19 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -7,6 +7,7 @@ * [#10155](https://github.com/netbox-community/netbox/issues/10155) - Fix rear port display when editing front port template for module type * [#10156](https://github.com/netbox-community/netbox/issues/10156) - Avoid forcing SVG image links to open in a new window * [#10161](https://github.com/netbox-community/netbox/issues/10161) - Restore "set null" option for custom fields during bulk edit +* [#10181](https://github.com/netbox-community/netbox/issues/10181) - Restore MultiPartParser (regression from #10031) --- diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 8c44ff015..f387107eb 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -535,6 +535,7 @@ REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'netbox.api.pagination.OptionalLimitOffsetPagination', 'DEFAULT_PARSER_CLASSES': ( 'rest_framework.parsers.JSONParser', + 'rest_framework.parsers.MultiPartParser', ), 'DEFAULT_PERMISSION_CLASSES': ( 'netbox.api.authentication.TokenPermissions',