-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Support multiple parametersfor Hyperlinked fields? #1024
Comments
this lets me do things like:
where the urlscheme has <poll_id> and <choice_id> and the Choice object has a Foreign Key to a poll object |
Also related: http://django-rest-framework.org/api-guide/generic-views.html#creating-custom-mixins I would love to see someone write a good third party package that properly deals with this, but I don't want to have to maintain it in core (there's already plenty of maintaince overhead on the project). I think this needs to be covered both by a custom hyperlinked relational field, that accepts Like I say though it's not something I'm willing to take on in core right now. I do think it'd be super useful to have, but there's no reason it can't be handled as a seperate package. |
Tom, Is there a wiki with details of third party packages? We've already created and tested the first part if this, and may be Matt On Thursday, August 15, 2013, Tom Christie wrote:
|
(In particular I guess we'd link to it from the serializer relations docs and possibly also generic views docs, dep on what your package covers exactly) |
@millarm @tomchristie I was actually looking for something like this and it works as provided by millarm. One question - do you plan to support this in the future? |
@bkovacev Not planned no - folks tie themselves up in knots with Hyperlinked fields as it is - supporting multiple lookups in the core REST framework would only make that worse. Much more keen to have it as a third party package that we could link too. |
I'd really like to be able to reverse hyperlinked URLs on more than just one field, and with fields that span across models.
So I'd love to have a "lookup_fields" parameter - that behaves like this:
Better HyperlinkedIdentityField
The text was updated successfully, but these errors were encountered: