from django.shortcuts import render

from comm_op.models import *
from rest_framework import viewsets
from Reskreen.rest_permission import CustomPermission_DjangoModel_based

from .serializers import cl_comm_opMessage_Serializer

class comm_opMessageViewset(viewsets.ModelViewSet):
    queryset = comm_opMessage.objects.all()
    serializer_class = cl_comm_opMessage_Serializer
    permission_classes = [CustomPermission_DjangoModel_based]