add docstring for ProductType.
This commit is contained in:
parent
fb3fc25a3d
commit
023d304ea7
|
|
@ -111,13 +111,47 @@ class ProductListCreateBackOfficeView(ProductBackOfficeMixinView,
|
||||||
|
|
||||||
class ProductTypeListCreateBackOfficeView(ProductTypeBackOfficeMixinView,
|
class ProductTypeListCreateBackOfficeView(ProductTypeBackOfficeMixinView,
|
||||||
generics.ListCreateAPIView):
|
generics.ListCreateAPIView):
|
||||||
"""Product type back-office list-create view."""
|
"""
|
||||||
|
Product type back-office list-create view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting ProductType list.
|
||||||
|
```
|
||||||
|
|
||||||
|
**POST**
|
||||||
|
```
|
||||||
|
Implement creating ProductType.
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.ProductTypeBackOfficeDetailSerializer
|
serializer_class = serializers.ProductTypeBackOfficeDetailSerializer
|
||||||
|
|
||||||
|
|
||||||
class ProductTypeRUDBackOfficeView(ProductTypeBackOfficeMixinView,
|
class ProductTypeRUDBackOfficeView(ProductTypeBackOfficeMixinView,
|
||||||
generics.RetrieveUpdateDestroyAPIView):
|
generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Product type back-office retrieve-update-destroy view."""
|
"""
|
||||||
|
Product type back-office retrieve-update-destroy view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting ProductType object.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PUT**
|
||||||
|
```
|
||||||
|
Implement updating ProductType.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PATCH**
|
||||||
|
```
|
||||||
|
Implement partial updating ProductType.
|
||||||
|
```
|
||||||
|
|
||||||
|
**DELETE**
|
||||||
|
```
|
||||||
|
Implement deleting ProductType.
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.ProductTypeBackOfficeDetailSerializer
|
serializer_class = serializers.ProductTypeBackOfficeDetailSerializer
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user