Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/models/signals.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed pre_syncdb and post_syncdb signals per ↵Tim Graham2015-01-171-3/+0
| | | | deprecation timeline.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+4
| | | | refs #23395.
* Fixed #21477 -- Renamed db to using in pre/post_migrate ↵Aymeric Augustin2014-01-121-2/+2
| | | | signals.
* Refactored the migration signals to use app configs.Aymeric Augustin2013-12-291-4/+5
| | | | | De-aliased pre/post_syncdb to pre/post_migrate to increase backwards-compatibility.
* Changed get_model to raise an exception on errors.Aymeric Augustin2013-12-281-2/+3
| | | | | | | | | | | | Returning None on errors required unpythonic error checking and was inconsistent with get_app_config. get_model was a private API until the previous commit, but given that it was certainly used in third party software, the change is explained in the release notes. Applied the same change to get_registered_model, which is a new private API introduced during the recent refactoring.
* Stopped calling apps.get_model with only_installed=False.Aymeric Augustin2013-12-281-9/+6
| | | | | | | | | | ContentTypes are only created for installed applications, and I could make a case for not returning a model that isn't installed any more. The check for stale ContentTypes in update_contenttypes doesn't use model_class. ModelSignal actually needs get_registered_model since the lookup happens at import time. I took this opportunity to perform a small refactoring.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-2/+2
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Fixed #21391 -- Allow model signals to lazily reference ↵Simon Charette2013-11-241-9/+59
| | | | their senders.
* Fixed #20943 -- Weakly reference senders when caching ↵Simon Charette2013-08-211-1/+1
| | | | their associated receivers
* Rename pre_ and post_syncdb to *_migrate, with aliases ↵Andrew Godwin2013-07-301-2/+4
| | | | from old names
* Fixed #11398 - Added a pre_syncdb signalDonald Stufft2013-05-231-0/+1
|
* Added documentation for the 'db' argument of the ↵mpaolini2013-01-031-1/+1
| | | | post-syncdb signal.
* Fixed #16679 -- Use caching to speed up signal sendingAnssi Kääriäinen2012-12-161-8/+9
|
* Fixed #4102 -- Allow update of specific fields in ↵Andrei Antoukh2012-05-121-2/+2
| | | | | | | | model.save() Added the ability to update only part of the model's fields in model.save() by introducing a new kwarg "update_fields". Thanks to all the numerous reviewers and commenters in the ticket
* Fixed #13552 -- Added a 'using' parameter to database ↵Russell Keith-Magee2010-08-071-5/+5
| | | | | | signals. Thanks to gmandx for the suggestion, and Andrew Godwin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5390 -- Added signals for m2m operations. Thanks ↵Russell Keith-Magee2010-01-131-0/+2
| | | | | | to the many people (including, most recently, rvdrijst and frans) that have contributed to this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Major refactoring of django.dispatch with an eye towards ↵Jacob Kaplan-Moss2008-08-061-8/+10
| | | | | | | | | | | | | | | speed. The net result is that signals are up to 90% faster. Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes. Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated. Documentation is, sigh, still forthcoming. Fixes #6814 and #3951 (with the new dispatch_uid argument to connect). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is ↵Adrian Holovaty2006-05-021-0/+12
highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37