add docstring for Advertisement
This commit is contained in:
parent
400dc1bab2
commit
94750120c9
|
|
@ -23,14 +23,48 @@ class AdvertisementBackOfficeViewMixin(generics.GenericAPIView):
|
||||||
|
|
||||||
|
|
||||||
class AdvertisementListCreateView(AdvertisementBackOfficeViewMixin, generics.ListCreateAPIView):
|
class AdvertisementListCreateView(AdvertisementBackOfficeViewMixin, generics.ListCreateAPIView):
|
||||||
"""List|Create advertisement view."""
|
"""
|
||||||
|
List/Create Advertisement view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting list for Advertisement.
|
||||||
|
```
|
||||||
|
|
||||||
|
**POST**
|
||||||
|
```
|
||||||
|
Implement creating for Advertisement.
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
|
||||||
serializer_class = AdvertisementBaseSerializer
|
serializer_class = AdvertisementBaseSerializer
|
||||||
|
|
||||||
|
|
||||||
class AdvertisementRUDView(AdvertisementBackOfficeViewMixin,
|
class AdvertisementRUDView(AdvertisementBackOfficeViewMixin,
|
||||||
generics.RetrieveUpdateDestroyAPIView):
|
generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Retrieve|Update|Destroy advertisement page view."""
|
"""
|
||||||
|
Retrieve/Update/Destroy Advertisement page view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting Advertisement object.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PUT**
|
||||||
|
```
|
||||||
|
Implement updating Advertisement.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PATCH**
|
||||||
|
```
|
||||||
|
Implement partial updating Advertisement.
|
||||||
|
```
|
||||||
|
|
||||||
|
**DELETE**
|
||||||
|
```
|
||||||
|
Implement deleting Advertisement.
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
|
||||||
serializer_class = AdvertisementDetailSerializer
|
serializer_class = AdvertisementDetailSerializer
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class ReviewListView(PermissionMixinView, ReviewMixinView, generics.ListCreateAP
|
||||||
class ReviewRUDView(PermissionMixinView, ReviewMixinView, generics.RetrieveUpdateDestroyAPIView):
|
class ReviewRUDView(PermissionMixinView, ReviewMixinView, generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Review RUD view.
|
"""Review RUD view.
|
||||||
|
|
||||||
**GET**
|
**GET**
|
||||||
```
|
```
|
||||||
Implement getting Review object.
|
Implement getting Review object.
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user