herreweb_site/2023-12-24-old/herreweb_backend/project/views.py

9 lines
279 B
Python
Raw Permalink Normal View History

2022-12-28 18:51:36 +00:00
from django.shortcuts import render
from rest_framework import viewsets
from project.serializers import ProjectSerializer
from .models import Project
class ProjectView(viewsets.ModelViewSet):
serializer_class = ProjectSerializer
queryset = Project.objects.all()