gateway_placeholder/gateway/api/Role/view.py

7 lines
247 B
Python
Raw Permalink Normal View History

2024-11-30 05:30:54 +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