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

Reimplement nested routes v3 #236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

auvipy
Copy link
Collaborator

@auvipy auvipy commented Sep 17, 2018

No description provided.

raphendyr added 2 commits June 6, 2017 17:47
This change requires that parent viewset defines lookup_url_kwarg or
lookup_field. In exchange we do not need to define anything about url kwargs at
register time. Old way is still supported, though pending deprecation.

Also there is NestedHyperlinkedRelatedField and NestedHyperlinkedIdentityField
which will use our config from viewsets to make writing serializers simpler and
less error prone.

You can also use register using with-statement.
@0x000bff
Copy link

Is there something preventing this from being merged?

@auvipy
Copy link
Collaborator Author

auvipy commented Aug 12, 2019

lots of merge conflicts

@auvipy
Copy link
Collaborator Author

auvipy commented Aug 12, 2019

  • DRF 3.10 compat

@auvipy
Copy link
Collaborator Author

auvipy commented Sep 25, 2019

@rpkilby can you share some insight about the approach of this PR? I would like to move this forward. Since you are a DRF core member. Your inputs are highly appreciated!

@rpkilby
Copy link
Contributor

rpkilby commented Oct 7, 2019

Hi @auvipy. I'm not that familiar with drf-extensions. I made a change to DRF that broke the nested router, so I submitted #214, but that mostly consisted of removing old and unused code. I don't really have any insights here.

That said, my general advice would be to break this up into multiple smaller PRs if possible. The original PR (#153) is pretty broad in scope and definitely in a first draft state (per the author's comments). If you can breakup the PR into smaller chunks, testing should be more manageable. You might try separating the router syntax changes from the viewset/serializer lookup_map changes.

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.

4 participants