Disable lookup_field in url #8864
Unanswered
fidoriel
asked this question in
Ideas & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
if creating a
UserView(mixins.RetrieveModelMixin, mixins.UpdateModelMixin, GenericViewSet)
where I want to let the user edit some settings like theme etc. The router always uses pk as queryparm. I do not want that to happen because I am operating on the user model wich I get from my request.
lookup_field=False
would be greate to tell the router to not create a lookup field. It would be greate to find a solution or new feature here.Thanks
Beta Was this translation helpful? Give feedback.
All reactions