Created
February 10, 2020 20:59
-
-
Save Kristian-Roopnarine/b35e73508b511ba386f9263d30a585e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from backend.models import ProjectInfo | |
from rest_framework import viewsets | |
from .serializers import ProjectInfoSerializer | |
# Project Info viewset | |
# allows us to create a CRUD api without specifying methods for functionality | |
class ProjectInfoViewSet(viewsets.ModelViewSet): | |
queryset = ProjectInfo.objects.filter(show=True) | |
serializer_class = ProjectInfoSerializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment