Created
April 28, 2021 19:59
-
-
Save chapimenge3/20f5725b46b526fc814b3e7589bdd38f 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 django.shortcuts import render | |
# restframewok | |
from rest_framework import viewsets | |
# Project | |
from Todo.models import Todo | |
from Todo.serializers import TodoSerializer | |
class TodoViewset(viewsets.ModelViewSet): | |
queryset = Todo.objects.all() | |
serializer_class = TodoSerializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment