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
# urls.pyurlpatterns= [
# permission will be addedpath('test_urlpattern/', TestViewSet.as_view({'get': 'test_action'}, permission_classes=[IsAuthenticated, ])),
]
According to the docs, it's not clear this feature works for Router configuration only. No exceptions, warnings, or even related github issues were found regarding this.
The text was updated successfully, but these errors were encountered:
Hi,
I encountered a problem when overriding viewset-level attributes doesn't work for actions if a route is configured as
.as_view()
.Example:
You can override it using
initkwargs
onlyAccording to the docs, it's not clear this feature works for Router configuration only. No exceptions, warnings, or even related github issues were found regarding this.
The text was updated successfully, but these errors were encountered: