-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Update InheritanceIterable to inherit from ModelIterable instead of BaseIterable #279
Update InheritanceIterable to inherit from ModelIterable instead of BaseIterable #279
Conversation
Any timeline for getting this merged? |
It's been four months since the PR submitted, could this please get merged in? As of now, django-model-utils will not work with Django 1.11+ if a |
Any updates? This is absolutely critical. |
Any news? This is making our lives hard :( |
Please, merge it, prefetching is essential for us. |
Hey folks, a Jazzband roadie here. Did you know you can merge this yourself? Simply join Jazzband and you'll able to help out directly with maintenance of this package. Check out the Jazzband FAQ for more info what Jazzband is and how it works. |
Thanks @jezdez. Just joined! |
@jezdez do we also manage pypi releases? |
@hanleyhansen Releases happen semi-automatic as documented on the Releases site, basically @carljm will need to approve a release manually once a Git tag has been cut which triggers the upload to the release stage. Make sure to update the version number in the various places (e.g. |
Update InheritanceIterable to inherit from ModelIterable instead of BaseIterable
Problem
This PR addresses issue #277
Solution
The solution required updating
InheritanceIterable
to inherit fromModelIterable
instead ofBaseIterable
to avoid the exception thrown in Django 1.11'squery.py
:The test exposes that this was broken in Django 1.10 also, hence the
skipIf
. However, in Django 1.10 the if requires aModelIterable
not just a subclass of it which is a lot more restrictive:Commandments
CHANGES.rst
file to describe the changes, and quote according issue withGH-<issue_number>
.