From b9a470d889fab792fa4b941702ad053375f1c29f Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sat, 6 Apr 2024 20:25:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/organizations/views.py b/src/organizations/views.py index 2258083..b38ea36 100644 --- a/src/organizations/views.py +++ b/src/organizations/views.py @@ -2,8 +2,10 @@ from django.conf import settings from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from django.views.decorators.vary import vary_on_cookie +from rest_framework import status from rest_framework.generics import ListAPIView from rest_framework.pagination import PageNumberPagination +from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.viewsets import ModelViewSet @@ -86,3 +88,5 @@ class UploadAPIView(APIView): def post(self, request): parse_organizations_to_db(self.request.data) + return Response({'message': 'da'}, status=status.HTTP_201_CREATED) +