Commit 2a6a2013 by Diego Ponciano

small typo correction on ViewSet example code

parent 195790e6
...@@ -23,7 +23,7 @@ Let's define a simple viewset that can be used to list or retrieve all the users ...@@ -23,7 +23,7 @@ Let's define a simple viewset that can be used to list or retrieve all the users
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
from myapps.serializers import UserSerializer from myapps.serializers import UserSerializer
from rest_framework import viewsets from rest_framework import viewsets
from rest_framewor.responses import Response from rest_framework.response import Response
class UserViewSet(viewsets.ViewSet): class UserViewSet(viewsets.ViewSet):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment