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

allow option to set product mapper #36

Merged
merged 2 commits into from
Sep 2, 2024
Merged

allow option to set product mapper #36

merged 2 commits into from
Sep 2, 2024

Conversation

mr-sphere
Copy link
Collaborator

No description provided.



def product_queryset_to_resources(
queryset: QuerySet,
request: Optional[HttpRequest] = None,
user: Optional[AbstractUser] = None,
include_children: bool = False,
product_mapper=ProductToResource,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the same here as above product_mapper: Baseblabla = ProductToResource

request,
user,
include_children,
product_mapper=product_mapper,
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove this as kwarg now

@viggo-devries viggo-devries merged commit 3347e00 into master Sep 2, 2024
5 checks passed
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.

3 participants