from core.serializers import ProjectSerializer | |
from rest_framework import generics | |
from core.models import Project | |
class ProjectList(generics.ListCreateAPIView): | |
queryset = Project.objects.all() | |
serializer_class = ProjectSerializer | |
class ProjectDetail(generics.RetrieveUpdateDestroyAPIView): | |
queryset = Project.objects.all() | |
serializer_class = ProjectSerializer | |