add docstring for back-office users
This commit is contained in:
parent
18e4f5377a
commit
6260a1f9c3
|
|
@ -54,7 +54,14 @@ class NewsMixinView:
|
||||||
|
|
||||||
|
|
||||||
class NewsStatesView(generics.ListAPIView):
|
class NewsStatesView(generics.ListAPIView):
|
||||||
"""Possible project news states"""
|
"""
|
||||||
|
Possible project news states
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting list for NewsStates.
|
||||||
|
```
|
||||||
|
"""
|
||||||
pagination_class = None
|
pagination_class = None
|
||||||
serializer_class = serializers.NewsStatesSerializer
|
serializer_class = serializers.NewsStatesSerializer
|
||||||
|
|
||||||
|
|
@ -287,7 +294,29 @@ class NewsBackOfficeGalleryListView(NewsBackOfficeMixinView,
|
||||||
|
|
||||||
class NewsBackOfficeRUDView(NewsBackOfficeMixinView,
|
class NewsBackOfficeRUDView(NewsBackOfficeMixinView,
|
||||||
generics.RetrieveUpdateDestroyAPIView):
|
generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Resource for detailed information about news for back-office users."""
|
"""
|
||||||
|
Resource for detailed information about news for back-office users.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting back-office users object.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PUT**
|
||||||
|
```
|
||||||
|
Implement updating back-office users.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PATCH**
|
||||||
|
```
|
||||||
|
Implement partial updating back-office users.
|
||||||
|
```
|
||||||
|
|
||||||
|
**DELETE**
|
||||||
|
```
|
||||||
|
Implement deleting back-office users.
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.NewsBackOfficeDetailSerializer
|
serializer_class = serializers.NewsBackOfficeDetailSerializer
|
||||||
|
|
||||||
def get(self, request, pk, *args, **kwargs):
|
def get(self, request, pk, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user