add docstring for establishment type
This commit is contained in:
parent
8aa7f89fe2
commit
f6d41f878f
|
|
@ -610,7 +610,19 @@ class RemoveAwardView(generics.DestroyAPIView):
|
||||||
|
|
||||||
|
|
||||||
class EstablishmentTypeListCreateView(generics.ListCreateAPIView):
|
class EstablishmentTypeListCreateView(generics.ListCreateAPIView):
|
||||||
"""Establishment type list/create view."""
|
"""
|
||||||
|
Establishment type list/create view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting list of Establishment type.
|
||||||
|
```
|
||||||
|
|
||||||
|
**POST**
|
||||||
|
```
|
||||||
|
Implement creating Establishment type
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.EstablishmentTypeBaseSerializer
|
serializer_class = serializers.EstablishmentTypeBaseSerializer
|
||||||
queryset = models.EstablishmentType.objects.select_related('default_image')
|
queryset = models.EstablishmentType.objects.select_related('default_image')
|
||||||
pagination_class = None
|
pagination_class = None
|
||||||
|
|
@ -618,7 +630,30 @@ class EstablishmentTypeListCreateView(generics.ListCreateAPIView):
|
||||||
|
|
||||||
|
|
||||||
class EstablishmentTypeRUDView(generics.RetrieveUpdateDestroyAPIView):
|
class EstablishmentTypeRUDView(generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Establishment type retrieve/update/destroy view."""
|
"""
|
||||||
|
Establishment type retrieve/update/destroy view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting Establishment type object by id.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PUT**
|
||||||
|
```
|
||||||
|
Implement update Establishment type.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PATCH**
|
||||||
|
```
|
||||||
|
Implement partial update Establishment type.
|
||||||
|
```
|
||||||
|
|
||||||
|
**DELETE**
|
||||||
|
```
|
||||||
|
Implement deleting Establishment type.
|
||||||
|
```
|
||||||
|
|
||||||
|
"""
|
||||||
serializer_class = serializers.EstablishmentTypeBaseSerializer
|
serializer_class = serializers.EstablishmentTypeBaseSerializer
|
||||||
queryset = models.EstablishmentType.objects.select_related('default_image')
|
queryset = models.EstablishmentType.objects.select_related('default_image')
|
||||||
permission_classes = get_permission_classes()
|
permission_classes = get_permission_classes()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user