SOITA/categories/views.py

10 lines
263 B
Python
Raw Normal View History

2021-12-12 11:35:35 +01:00
from rest_framework import viewsets
from categories.models import Category
from categories.serializers import CategorySerializer
class CategoryModelViewSet(viewsets.ModelViewSet):
queryset = Category.objects.all()
serializer_class = CategorySerializer