micro_service_placeholder/microService/api/Role/view.py

7 lines
247 B
Python
Raw Normal View History

2024-11-30 05:34:13 +00:00
from django.contrib.auth.models import Group
from api.Role.serializer import RoleSerializer
from rest_framework.viewsets import ModelViewSet
class RoleViewset(ModelViewSet):
queryset = Group.objects.all()
serializer_class = RoleSerializer