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

DefaultRouter root view should use namespaced view names if needed. #2351

Closed
tomchristie opened this issue Dec 24, 2014 · 5 comments
Closed

Comments

@tomchristie
Copy link
Member

Add support for the root API view to use appropriately namespaced view names. Won't need any changes to the router API, just an implementation detail.

Refs #2333, #2350.

@tomchristie
Copy link
Member Author

The API root view can inspect the incoming request, determine the namespace if there is one on the request object, and modify the view names accordingly if so.

@rockymeza
Copy link
Contributor

That sounds pretty badass, I think that would work. Do you think it could also be added to the HyperlinkedRelatedField (I'm not sure if that is correct behavior)? I wonder if that is too magical.

@tomchristie
Copy link
Member Author

Note to self: Ensure this doesn't conflict with namespaced versioning.

@tomchristie tomchristie added this to the 3.0.3 Release milestone Dec 28, 2014
@tomchristie
Copy link
Member Author

Closed via efa5942.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@rockymeza @tomchristie and others