Viewset.get_extra_action_url_map does not recognize namespaces #7816
Replies: 5 comments 3 replies
-
Great fix! |
Beta Was this translation helpful? Give feedback.
-
i think this fix should get integrated into drf. |
Beta Was this translation helpful? Give feedback.
-
Shouldn't this be marked as a bug rather than an idea/suggestion ? |
Beta Was this translation helpful? Give feedback.
-
I was debugging to see why my @action doesn't appear in browsable api, and found this too. |
Beta Was this translation helpful? Give feedback.
-
And the pull request is merged into master! See #8598 When a new release is out I will update this post if I think about it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Seems
Viewset
sget_extra_action_url_map
method does not recognize namespaces. I'm using different apps via Django URL namespaces (":") but the DRF action pull down menu will not provide it. My quick fix looks like:which basically add these two lines:
The fix works fine for me since years, but it seems that nobody else has been stumbled about it before.
Regards
Frank
Beta Was this translation helpful? Give feedback.
All reactions