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 rest_framework_simplejwt.authentication import JWTAuthentication
|
||||
from apps.core.mixins.soft_delete_mixin import SoftDeleteMixin
|
||||
from rest_framework.permissions import AllowAny, IsAuthenticated
|
||||
from apps.core.pagination import CustomPageNumberPagination
|
||||
from apps.core.exceptions import ConflictException
|
||||
@@ -23,14 +24,14 @@ from rest_framework import filters
|
||||
from rest_framework import status
|
||||
|
||||
|
||||
class RoleViewSet(viewsets.ModelViewSet):
|
||||
class RoleViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
""" Crud Operations For User Roles """
|
||||
|
||||
queryset = Role.objects.all()
|
||||
serializer_class = RoleSerializer
|
||||
|
||||
|
||||
class PageViewSet(viewsets.ModelViewSet):
|
||||
class PageViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
""" add website pages to system to set permission on it """
|
||||
|
||||
queryset = Page.objects.all()
|
||||
@@ -66,7 +67,7 @@ class PageViewSet(viewsets.ModelViewSet):
|
||||
return Response(e, status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
|
||||
class PermissionViewSet(viewsets.ModelViewSet):
|
||||
class PermissionViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
""" Crud Operations for Permissions """
|
||||
|
||||
queryset = Permissions.objects.all()
|
||||
@@ -96,7 +97,7 @@ class PermissionViewSet(viewsets.ModelViewSet):
|
||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
|
||||
class UserRelationViewSet(viewsets.ModelViewSet):
|
||||
class UserRelationViewSet(viewsets.ModelViewSet, SoftDeleteMixin):
|
||||
""" Crud Operations for User Relations """
|
||||
|
||||
queryset = UserRelations.objects.all()
|
||||
|
||||
Reference in New Issue
Block a user