Closed Scott-Wheeler closed 6 years ago
the login doesn't work. I can't create snippets from the list view when authenticated. when logged in as the wrong user, the detail page accepts PUT, PATCH, DELETE
http -a other:otherpassword POST http://127.0.0.1:8000/snippets/ code="print(123)"
response is "Method Not Allowed"
grrrr
figured it out it's because I was using ListAPIView when I should have been using ListCreateAPIView
Part 4 of Django REST - 4 - Authentication & Permissions #135