SOITA/categories/views.py
Hubert Jankowski 7c18f0920a WIP
2021-12-12 11:35:35 +01:00

10 lines
263 B
Python

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