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)