From 509acad6ad107f52fc26c1a6e705b424ba582d6a Mon Sep 17 00:00:00 2001 From: Sofia Bilous Date: Fri, 8 Dec 2023 22:10:16 +0200 Subject: [PATCH] rename BannerChangeAPIView->BannerRetrieveUpdate --- images/urls.py | 4 ++-- images/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/images/urls.py b/images/urls.py index 75ea0ff0e..4f6277366 100644 --- a/images/urls.py +++ b/images/urls.py @@ -1,8 +1,8 @@ from django.urls import path -from .views import BannerChangeAPIView +from .views import BannerRetrieveUpdate app_name = "images" urlpatterns = [ - path("banner//", BannerChangeAPIView.as_view(), name="banner_change"), + path("banner//", BannerRetrieveUpdate.as_view(), name="banner_change"), ] diff --git a/images/views.py b/images/views.py index 6a330e9d0..5df554cb5 100644 --- a/images/views.py +++ b/images/views.py @@ -8,7 +8,7 @@ from .serializers import BannerSerializer -class BannerChangeAPIView(RetrieveUpdateAPIView): +class BannerRetrieveUpdate(RetrieveUpdateAPIView): permission_classes = (UserIsProfileOwnerOrReadOnly,) serializer_class = BannerSerializer parser_classes = (MultiPartParser, FormParser)