Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Reimplement nested routes v5, rebased onto upstream v0.7.0#3

Open
markkuriekkinen wants to merge 4 commits into
raphendyr:masterfrom
apluslms:reimplement_nested_routes_v5
Open

Reimplement nested routes v5, rebased onto upstream v0.7.0#3
markkuriekkinen wants to merge 4 commits into
raphendyr:masterfrom
apluslms:reimplement_nested_routes_v5

Conversation

@markkuriekkinen
Copy link
Copy Markdown
Collaborator

For your information only, this branch (reimplement_nested_routes_v5) is rebased onto the current upstream master (v0.7.0 at https://github.com/chibisov/drf-extensions) from raphendyr/reimplement_nested_routes_v4. Unfortunately, I don't have time to finish the real original pull request in the upstream (chibisov).

raphendyr and others added 4 commits April 6, 2021 17:20
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.

Co-authored-by: Markku Riekkinen <markku.riekkinen@aalto.fi>
Co-authored-by: Markku Riekkinen <markku.riekkinen@aalto.fi>
Remove classes NestedHyperlinkedModelSerializer,
NestedHyperlinkedRelatedField, and NestedHyperlinkedIdentityField.
@markkuriekkinen
Copy link
Copy Markdown
Collaborator Author

The commit list is long now in the PR because the raphendyr/master branch is so much behind the upstream. The four latest commits are the real content.

@raphendyr raphendyr changed the base branch from master to reimplement_nested_routes_v4 April 6, 2021 23:43
@raphendyr raphendyr changed the base branch from reimplement_nested_routes_v4 to master April 6, 2021 23:43
@raphendyr
Copy link
Copy Markdown
Owner

Master updated, so the PR looks nicer. I guess it's good to continue development under apluslms org.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants