From 941945eeba15a32d8868c7d4dd9d16c4346d68ba Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Mon, 5 Sep 2022 22:48:01 -0300 Subject: [PATCH] impl: adiciona parser de upload de arquivos na api --- sapl/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sapl/settings.py b/sapl/settings.py index 0ad1389cd..59298311a 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -149,6 +149,7 @@ REST_FRAMEWORK = { "UNICODE_JSON": False, "DEFAULT_PARSER_CLASSES": ( "rest_framework.parsers.JSONParser", + "rest_framework.parsers.MultiPartParser" ), 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer',