Django model mixins and utilities.
Find a file
Sachi King 8cb21aabbc Support django 1.11 iterator changes
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.
2017-04-02 21:53:15 +10:00
.github Pull request and issue template fixes #254 2017-01-17 22:34:04 +00:00
docs Remove out-to-date example 2017-01-26 14:18:19 +00:00
model_utils Support django 1.11 iterator changes 2017-04-02 21:53:15 +10:00
tests Exclude tests from distribution 2017-02-15 23:00:10 +00:00
.coveragerc Move coverage configuration into .coveragerc 2013-05-20 22:37:24 -07:00
.editorconfig Add EditorConfig file 2013-05-20 22:38:00 -07:00
.gitignore Add script and makefile tasks for making and compiling messages; un-gitignore .mo files. 2015-07-20 10:20:11 -06:00
.hgignore Add runtests.sh script to run tox and generate HTML coverage summary. 2013-01-27 13:35:48 -08:00
.hgtags Added tag 1.1.0 for changeset 92792fb14a51 2012-04-13 17:33:51 -06:00
.travis.yml Drop unsupported django versions 2017-01-12 12:16:40 -05:00
AUTHORS.rst Update changelog and AUTHORS. 2016-11-21 11:36:25 -08:00
CHANGES.rst Support django 1.11 iterator changes 2017-04-02 21:53:15 +10:00
CONTRIBUTING.rst Update CONTRIBUTING doc. 2015-12-02 12:56:03 -07:00
LICENSE.txt Happy New Year! 2015-06-28 19:04:27 -07:00
Makefile Add script and makefile tasks for making and compiling messages; un-gitignore .mo files. 2015-07-20 10:20:11 -06:00
MANIFEST.in Include runtests.py in sdist; bump version to 2.5.2. 2016-08-09 15:06:49 -06:00
README.rst Drop unsupported django versions 2017-01-12 12:16:40 -05:00
requirements.txt Fixes #231 -- clarify that requirements.txt contains dev dependencies. 2016-08-10 07:07:55 -06:00
runtests.py Exclude tests from distribution 2017-02-15 23:00:10 +00:00
setup.cfg Add universal-wheel config in setup.py. 2014-03-19 22:44:17 -06:00
setup.py Exclude tests from distribution 2017-02-15 23:00:10 +00:00
tox.ini Run coverage with '-a' option 2017-02-16 12:39:41 +00:00
translations.py Exclude tests from distribution 2017-02-15 23:00:10 +00:00
update_travis_envs.sh env list in .travis.yml will now be sorted 2015-01-27 05:15:32 +02:00

==================
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