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

Add explicit error when ModelResource lacks object_class and queryset #1518

Merged
merged 3 commits into from
Jul 10, 2017

Conversation

georgedorn
Copy link
Contributor

Addresses recurring not-a-bugs:
#1475, #1517

Note that there's no exception for abstract ModelResource base classes; tastypie doesn't really implement those yet. I plan to address that in a future PR; for now, they should just set Meta.queryset = None and/or Meta.object_list = None for now.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.834% when pulling 6b3d997 on fix/modelresource_no_object_class into c2bbd60 on master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.834% when pulling 6b3d997 on fix/modelresource_no_object_class into c2bbd60 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.834% when pulling 6b3d997 on fix/modelresource_no_object_class into c2bbd60 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.834% when pulling 6b3d997 on fix/modelresource_no_object_class into c2bbd60 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.834% when pulling 6b3d997 on fix/modelresource_no_object_class into c2bbd60 on master.

@coveralls
Copy link

coveralls commented Jul 10, 2017

Coverage Status

Coverage increased (+0.004%) to 94.946% when pulling 2a3dcaf on fix/modelresource_no_object_class into c2bbd60 on master.

@georgedorn georgedorn merged commit 7dedb7b into master Jul 10, 2017
@georgedorn georgedorn deleted the fix/modelresource_no_object_class branch July 10, 2017 15:46
saedmansour pushed a commit to segmanta/django-tastypie that referenced this pull request Dec 19, 2019
…django-tastypie#1518)

* Add explicit error when ModelResource lacks object_class and queryset
pavanv pushed a commit to pavanv/django-tastypie that referenced this pull request Mar 3, 2021
…django-tastypie#1518)

* Add explicit error when ModelResource lacks object_class and queryset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants