-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Force model fields to be full in the url #389
Comments
There isn't a built-in way to do this right now. It's possible to do in |
I created a quick fix for this issue: https://gist.github.com/2897326 I think it should be really easy to integrate it into the core. @toastdriven Do you want me to give it a try? |
@santiagobasulto Unfortunately, that's modifying the field on the instance, likely causing subsequent requests to have behavior "leaked" from previous requests. -0 on that implementation. |
So @toastdriven I've got another way of doing this in the dehydrate_related function This is just kinda a dump of how I'm using it now. I'd like to add permissions checking via the Meta class filtering section, but wanted to get a quick "Yay this idea looks good" or "Boo, this causes other problems" |
Is there any way to overwrite if the field in the modelresource should be full in the resource's url?
Basically if the resourcemodel is:
then to overwrite it in the url by doing
or
The text was updated successfully, but these errors were encountered: