mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-29 09:53:15 +03:00
Docs whitespace fix.
This commit is contained in:
parent
572107281f
commit
d8eb9e6d45
|
@ -19,8 +19,8 @@ Typically when using the generic views, you'll override the view, and set severa
|
||||||
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from myapp.serializers import UserSerializer
|
from myapp.serializers import UserSerializer
|
||||||
from rest_framework import generics
|
from rest_framework import generics
|
||||||
from rest_framework.permissions import IsAdminUser
|
from rest_framework.permissions import IsAdminUser
|
||||||
|
|
||||||
class UserList(generics.ListCreateAPIView):
|
class UserList(generics.ListCreateAPIView):
|
||||||
queryset = User.objects.all()
|
queryset = User.objects.all()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user