Просмотр исходного кода

Merge pull request #10200 from netbox-community/10181-api-file-upload

Fixes #10181: Restore MultiPartParser (regression from #10031)
Jeremy Stretch 3 лет назад
Родитель
Сommit
e0741cc9af
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-3.3.md
  2. 1 0
      netbox/netbox/settings.py

+ 1 - 0
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)
 
 ---
 

+ 1 - 0
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',