Django model mixins and utilities.
Find a file
Matthew Schinckel 3496fe4291 Use a signal handler instead of patching save.
References #83.

Instead of patching the save method of a tracked model class, we can use
a signal handler on post_save, which means we can still pickle our model
class.

Note we can't just listen for the signal from the class we have, but
instead listen for all post_save signals. This means we actually install
a new signal handler for each tracked model class, which fires on all
model save occurrences (and returns immediately if this handler doesn't care).

We probably could improve this to have a registry of tracked models, or
something, that allows us to just install one signal handler, and filter
according to membership.
2014-05-12 14:32:59 +09:30
docs Fixed GH-125; add doc note about InheritanceQuerySetMixin. 2014-04-17 11:43:50 -06:00
model_utils Use a signal handler instead of patching save. 2014-05-12 14:32:59 +09:30
.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 Ignore PyCharm .idea/ folder. 2014-04-23 17:46:38 -07: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 Update Travis config to match updated tox.ini. 2014-01-13 09:49:05 -07:00
AUTHORS.rst Add me to AUTHORS 2014-04-25 13:42:05 -07:00
CHANGES.rst Update with changes made in this PR 2014-04-25 13:41:56 -07:00
CONTRIBUTING.rst Reference docs, not README, in CONTRIBUTING doc. 2014-01-25 17:41:24 -07:00
LICENSE.txt Update LICENSE year to 2013 2013-03-28 23:42:49 -07:00
Makefile Add Makefile with init, test, and docs tasks 2013-08-07 22:51:34 -07:00
MANIFEST.in Remove obsolete HGREV reference from MANIFEST.in. 2013-04-11 21:35:03 -06:00
README.rst Update supported Django/Python versions. 2014-01-06 18:25:10 -07:00
runtests.py Use DiscoverRunner if available 2014-04-10 23:52:11 -04:00
setup.cfg Add universal-wheel config in setup.py. 2014-03-19 22:44:17 -06:00
setup.py Fix case of Django dependency. Thanks Travis Swicegood. 2014-02-10 14:30:49 -07:00
TODO.rst Updates to multi-level support for InheritanceManager. 2013-02-01 22:38:14 -07:00
tox.ini Update tox.ini. 2014-01-06 16:04:15 -07: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://pypip.in/v/django-model-utils/badge.png
   :target: https://crate.io/packages/django-model-utils

Django model mixins and utilities.

``django-model-utils`` supports `Django`_ 1.4.10 and later on Python 2.6, 2.7,
3.2, 3.3 and 3.4.

.. _Django: http://www.djangoproject.com/


Getting Help
============

Documentation for django-model-utils is available at https://django-model-utils.readthedocs.org/

This app is available on `PyPI`_.

.. _PyPI: https://pypi.python.org/pypi/django-model-utils/


Contributing
============

Please file bugs and send pull requests to the `GitHub repository`_ and `issue
tracker`_.

.. _GitHub repository: https://github.com/carljm/django-model-utils/
.. _issue tracker: https://github.com/carljm/django-model-utils/issues

(Until January 2013 django-model-utils primary development was hosted at
`BitBucket`_; the issue tracker there will remain open until all issues and
pull requests tracked in it are closed, but all new issues should be filed at
GitHub.)

.. _BitBucket: https://bitbucket.org/carljm/django-model-utils/overview