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 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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