add docstring for ProductBackOffice.

This commit is contained in:
Александр Пархомин 2020-02-07 12:14:36 +03:00
parent 023d304ea7
commit 4f5af57d02

View File

@ -86,7 +86,29 @@ class ProductBackOfficeGalleryListView(ProductBackOfficeMixinView,
class ProductDetailBackOfficeView(ProductBackOfficeMixinView,
generics.RetrieveUpdateDestroyAPIView):
"""Product back-office R/U/D view."""
"""
Product back-office R/U/D view.
**GET**
```
Implement getting ProductBackOffice object.
```
**PUT**
```
Implement updating ProductBackOffice.
```
**PATCH**
```
Implement partial updating ProductBackOffice.
```
**DELETE**
```
Implement deleting ProductBackOffice.
```
"""
serializer_class = serializers.ProductBackOfficeDetailSerializer
@ -161,6 +183,9 @@ class ProductTypeTagCategoryCreateBackOfficeView(ProductTypeBackOfficeMixinView,
serializer_class = serializers.ProductTypeTagCategorySerializer
def create(self, request, *args, **kwargs):
"""
Implement creating ProductTypeTagCategory.
"""
super().create(request, *args, **kwargs)
return Response(status=status.HTTP_201_CREATED)