django-model-utils/model_utils
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
..
tests Use a signal handler instead of patching save. 2014-05-12 14:32:59 +09:30
__init__.py Bump version to 2.0.3.post1 for dev. 2014-03-19 22:48:13 -06:00
choices.py Merge branch 'master' into fix-choices-deepcopy 2013-10-11 13:23:56 -06:00
fields.py Fix bug where you could only run makemigrations once without error. 2014-04-25 14:17:42 -07:00
managers.py Provide dir() support for PassThroughManagers. 2014-04-15 08:48:01 +01:00
models.py Check for StatusModel field name conflicts correctly. 2014-01-06 16:03:44 -07:00
tracker.py Use a signal handler instead of patching save. 2014-05-12 14:32:59 +09:30