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
Error: "class Meta has no attribute 'object_class'" #1475
Comments
Could you post your resources? |
in my urls.py, I import
|
I just added regression tests but they failed to reproduce the error: 3e1f552 Any more info you could provide? How close is your code sample to your actual code? |
Thanks Sean for looking into this. The sample code is very much similar, and I basically just changed the names. I will check again on my end and try to see if there is any element that might be relevant and missing. |
Closing, feel free to comment if you have more info. |
@SeanHayes: I just ran into this same issue, because I was using an abstract base resource. Here's a reproduction:
This fails with the same stack trace pasted by hashemian, at the line My workaround for now is to add I think the actual fix is to change resources.py line 1797 to ... or if it's desirable behavior for ModelResource subclasses to throw an error when queryset is not set, then that error could be more explicit. I don't think my BaseResource should fail, though, since then I'm not sure how to do what I'm trying to do here. Thanks! |
Hi,
When I updated my tastypie from 13.3 to the head, trying to run my webapp throws this error:
If I switch back to version 13.3 (commit a71dd6e) then it works fine.
Any idea what might be wrong?
Thanks
The text was updated successfully, but these errors were encountered: