-
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
Resource checking introduced in 0.11.1 doesn't honor multi table inheritance. #1184
Comments
I'm having same error, I had to get back to 0.11.0 version because of that. |
Well, I had to update to 0.12 because I had some problems with httplib2, so I had to solve this problem, I just overrided get_via_uri method and created one based in original source in order to validate it works with subclases
|
The resource name checking is staying in, but I'd be fine with allowing subtypes to match if someone could write a PR with a unit test. |
I have a problem with the new resource checking introduced in 0.11.1.
In my application I use inheritance for models.
And use a reference to BaseExporter in a ForeignKey in some other model.
Assigning an instance of OnlineExporter or PrintExporter works just fine for djangos own ORM. But the new checking inside tastypie prohibits the creation of new ExportLogEntry instances based on a JSON document like this.
It only works, if a resource uri for a baseexporter is used. I think this is to much security checking and doesn't honor the inheritance feature of django.
The text was updated successfully, but these errors were encountered: