Skip to content

Commit

Permalink
Merge pull request #23 from sakisbl/patch-1
Browse files Browse the repository at this point in the history
Update access-control.rst
  • Loading branch information
shabda committed Mar 30, 2018
2 parents 7936737 + 32df884 commit 2e3071a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/access-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ Add a view and connect it to urls.
# in apiviews.py
# ...
from django.contrib.auth import authenticate
class LoginView(APIView):
permission_classes = ()
def post(self, request,):
username = request.data.get("username")
password = request.data.get("password")
Expand Down

0 comments on commit 2e3071a

Please sign in to comment.