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

Make possible to pass resource kwargs in view sets #15

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

NikAzanov
Copy link
Contributor

@NikAzanov NikAzanov commented Sep 5, 2023

Add get_resource_kwargs method to viewsets
Simplify ImportJobViewSet not to use filterset class

Closes #13

Copy link
Contributor

@AndyGreenwell94 AndyGreenwell94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I get it correctly, this allows us to pass some values from the API. This is not exactly the case with #13 . I don't think it's useful to pass them from the user, but probably we can implement some sort of method like get_resourse_kwargs on the ViewSet level, to pass kwargs like a user, or some user-related data to a resource.

@NikAzanov NikAzanov changed the title Make possible to pass resource kwargs in api Make possible to pass resource kwargs in view sets Sep 7, 2023
Base automatically changed from extend-documentation to main September 11, 2023 07:23
It makes possible to pass some values in resource
class from viewset.

Also simplify ImportJobViewSet not to use filterset class
@NikAzanov NikAzanov merged commit f503041 into main Sep 11, 2023
26 checks passed
@NikAzanov NikAzanov deleted the improve-api-views branch September 11, 2023 07:46
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

Successfully merging this pull request may close these issues.

Allow passing extra resource kwargs for ImportJob through ViewSet
2 participants