You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that can be related indeed as the DRYPermissions is just another implementation of Global and Object level permissions. And DRF will cycle through the permission_classes definition (eg permission_classes = (IsAuthenticated, DRYPermissions)). It looks for implementations of has_permission() and has_object_permission() methods on those classed.
If I add
DRYPermissions
to aReadOnlyModelViewSet
and then do aDELETE
request to the endpoint, I get a HTTP500 with the following exception:Instead, a HTTP 405 (method not allowed) should be returned.
Might be related: encode/django-rest-framework#4927
The text was updated successfully, but these errors were encountered: