Skip to content

Commit

Permalink
rename BannerChangeAPIView->BannerRetrieveUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Dec 8, 2023
1 parent 806d10a commit 509acad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions images/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.urls import path
from .views import BannerChangeAPIView
from .views import BannerRetrieveUpdate

app_name = "images"

urlpatterns = [
path("banner/<pk>/", BannerChangeAPIView.as_view(), name="banner_change"),
path("banner/<pk>/", BannerRetrieveUpdate.as_view(), name="banner_change"),
]
2 changes: 1 addition & 1 deletion images/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .serializers import BannerSerializer


class BannerChangeAPIView(RetrieveUpdateAPIView):
class BannerRetrieveUpdate(RetrieveUpdateAPIView):
permission_classes = (UserIsProfileOwnerOrReadOnly,)
serializer_class = BannerSerializer
parser_classes = (MultiPartParser, FormParser)
Expand Down

0 comments on commit 509acad

Please sign in to comment.