Skip to content

Commit

Permalink
Merge pull request #34 from FinniMcFinger/patch-1
Browse files Browse the repository at this point in the history
adds PermissionDenied import statement
  • Loading branch information
shabda committed Sep 19, 2018
2 parents 67926b7 + 36ea833 commit 21cb13c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/access-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ We have two remaining things we need to enforce.
We will do that by overriding :code:`PollViewSet.destroy` and :code:`ChoiceList.post`.

.. code-block:: python
# ...
from rest_framework.exceptions import PermissionDenied
class PollViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit 21cb13c

Please sign in to comment.