mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
This commit is contained in:
commit
2da9ab8cc5
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user