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
If you did not like the default URL generated for your custom action, you could use `url_path` parameter with `@detail_route` or `@list_route` to customize it.
72
+
73
+
For example, if you want to change the URL for our custom action to `^users/{pk}/change-password/$`, you could write:
74
+
75
+
from myapp.permissions import IsAdminOrIsSelf
76
+
from rest_framework.decorators import detail_route
0 commit comments