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

Any plans for nested custom serializer with PrimaryKeyRelatedField? #129

Open
joeyworld opened this issue Oct 29, 2018 · 1 comment
Open

Comments

@joeyworld
Copy link

joeyworld commented Oct 29, 2018

Suppose I have following URLs, models, and viewsets:

An ArticleAPIViewSet, which handles:

  • /articles
  • /articles/{slug}

And an CommentAPIViewSet, which handles:

  • /articles/{slug}/comments

With NestedHyperlinkedModelSerializer written and NestedViewSetMixin attached in my viewset, queryset such as:

Comments.objects.all()

would be automatically filtered with article_slug.

Is there any ways to automatically filter nested viewsets' queryset, or any plans to support those?

@sknmk
Copy link

sknmk commented Aug 19, 2021

is there any workaround?

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

2 participants