1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-07-30 01:49:50 +03:00

Merge pull request from max-wittig/patch-1

docs(tutorial): add missing permission import in viewsets
This commit is contained in:
Xavier Ordoquy 2020-10-06 21:42:30 +02:00 committed by GitHub
commit fdf277a782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ Next we're going to replace the `SnippetList`, `SnippetDetail` and `SnippetHighl
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import permissions
class SnippetViewSet(viewsets.ModelViewSet):
"""