add some new data to device login data, first part of broker to stake holders assignment
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from apps.pos_device.web.api.v1.serilaizers import client as client_serializer
|
||||
from apps.core.mixins.soft_delete_mixin import SoftDeleteMixin
|
||||
from apps.pos_device import models as pos_models
|
||||
from rest_framework.response import Response
|
||||
from common.tools import CustomOperations
|
||||
@@ -6,7 +7,7 @@ from rest_framework import viewsets
|
||||
from rest_framework import status
|
||||
|
||||
|
||||
class POSClientViewSet(viewsets.ModelViewSet):
|
||||
class POSClientViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
queryset = pos_models.POSClient.objects.all()
|
||||
serializer_class = client_serializer.POSClientSerializer
|
||||
|
||||
@@ -59,11 +60,11 @@ class POSClientViewSet(viewsets.ModelViewSet):
|
||||
return Response(serializer.errors, status=status.HTTP_403_FORBIDDEN)
|
||||
|
||||
|
||||
class POSClientAttributeViewSet(viewsets.ModelViewSet):
|
||||
class POSClientAttributeViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
queryset = pos_models.POSClientAttribute.objects.all()
|
||||
serializer_class = client_serializer.POSClientAttributeSerializer
|
||||
|
||||
|
||||
class POSClientAttributeValueViewSet(viewsets.ModelViewSet):
|
||||
class POSClientAttributeValueViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
queryset = pos_models.POSClientAttributeValue.objects.all()
|
||||
serializer_class = client_serializer.POSClientAttributeValueSerializer
|
||||
|
||||
Reference in New Issue
Block a user