Created
August 7, 2015 10:39
-
-
Save SafPlusPlus/cd25f6871f74586fb34c 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 | |
from rest_framework import viewsets | |
from .models import TestModel | |
from .serializers import TestSerializer | |
class TestViewSet(viewsets.ModelViewSet): | |
queryset = TestModel.objects.all() | |
serializer_class = TestSerializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment