mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Django model mixins and utilities.
Django starting with 1.9 switched to using a class to provide an iterator for the querymanager. Between 1.9 and 1.10 changes slowly stopped referencing that function and instead started calling _iterator_class directly. As the functionality model-utils is patching has moved, this patch moves the iterator logic to a class to match the changes that have been made in Django in version 1.9. As Django 1.8 is a LTS release that is still supported, iterator() is retained in the InheritanceQuerySetMixin and can be removed when support for Django 1.8 is removed. This goes for the try-except in the import statements as well. |
||
|---|---|---|
| .github | ||
| docs | ||
| model_utils | ||
| tests | ||
| .coveragerc | ||
| .editorconfig | ||
| .gitignore | ||
| .hgignore | ||
| .hgtags | ||
| .travis.yml | ||
| AUTHORS.rst | ||
| CHANGES.rst | ||
| CONTRIBUTING.rst | ||
| LICENSE.txt | ||
| Makefile | ||
| MANIFEST.in | ||
| README.rst | ||
| requirements.txt | ||
| runtests.py | ||
| setup.cfg | ||
| setup.py | ||
| tox.ini | ||
| translations.py | ||
| update_travis_envs.sh | ||
================== django-model-utils ================== .. image:: https://secure.travis-ci.org/carljm/django-model-utils.png?branch=master :target: http://travis-ci.org/carljm/django-model-utils .. image:: https://coveralls.io/repos/carljm/django-model-utils/badge.png?branch=master :target: https://coveralls.io/r/carljm/django-model-utils .. image:: https://img.shields.io/pypi/v/django-model-utils.svg :target: https://crate.io/packages/django-model-utils Django model mixins and utilities. ``django-model-utils`` supports `Django`_ 1.8 through 1.10 (latest bugfix release in each series only) on Python 2.7, 3.3 (Django 1.8 only), 3.4 and 3.5. .. _Django: http://www.djangoproject.com/ This app is available on `PyPI`_. .. _PyPI: https://pypi.python.org/pypi/django-model-utils/ Getting Help ============ Documentation for django-model-utils is available at https://django-model-utils.readthedocs.io/ Contributing ============ Please file bugs and send pull requests to the `GitHub repository`_ and `issue tracker`_. See `CONTRIBUTING.rst`_ for details. .. _GitHub repository: https://github.com/carljm/django-model-utils/ .. _issue tracker: https://github.com/carljm/django-model-utils/issues .. _CONTRIBUTING.rst: https://github.com/carljm/django-model-utils/blob/master/CONTRIBUTING.rst