Skip to content

Commit

Permalink
use multipartparser for file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
alles-klar authored and madchap committed Dec 23, 2019
1 parent d727947 commit 6939dbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dojo/api_v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from rest_framework.response import Response
from rest_framework.permissions import DjangoModelPermissions
from rest_framework.decorators import detail_route, action
from rest_framework.parsers import MultiPartParser
from django_filters.rest_framework import DjangoFilterBackend

from dojo.engagement.services import close_engagement, reopen_engagement
Expand Down Expand Up @@ -611,12 +612,14 @@ class UsersViewSet(mixins.ListModelMixin,
class ImportScanView(mixins.CreateModelMixin,
viewsets.GenericViewSet):
serializer_class = serializers.ImportScanSerializer
parser_classes = [MultiPartParser]
queryset = Test.objects.all()


class ReImportScanView(mixins.CreateModelMixin,
viewsets.GenericViewSet):
serializer_class = serializers.ReImportScanSerializer
parser_classes = [MultiPartParser]
queryset = Test.objects.all()


Expand Down

0 comments on commit 6939dbf

Please sign in to comment.