Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_item to RetrieveModelMixin #33

Open
sergey-jerzy opened this issue Jun 15, 2021 · 0 comments
Open

Add get_item to RetrieveModelMixin #33

sergey-jerzy opened this issue Jun 15, 2021 · 0 comments

Comments

@sergey-jerzy
Copy link
Collaborator

Add get_item method to RetrieveModelMixin, by default call self.get_object inside.

Use self.get_item(request_serializer) in retrieve action. Add request_serializer to query_params for schema generation as it works for ListModelMixin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant