add docstring for ProductBackOffice.
This commit is contained in:
parent
023d304ea7
commit
4f5af57d02
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user