9 lines
233 B
Python
9 lines
233 B
Python
from rest_framework import viewsets
|
|
|
|
from .models import Project
|
|
from .serializers import ProjectSerializer
|
|
|
|
|
|
class ProjectViewSet(viewsets.ModelViewSet):
|
|
queryset = Project.objects.all()
|
|
serializer_class = ProjectSerializer
|