views.py 256 B

12345678910
  1. from rest_framework.viewsets import ModelViewSet
  2. from basic.models import Menu
  3. from basic.serializer import MenuSerializer
  4. class MenuView(ModelViewSet):
  5. queryset = Menu.objects.all()
  6. serializer_class = MenuSerializer
  7. pagination_class = None