1
0
mirror of https://github.com/django/django.git synced 2025-03-01 12:24:31 +00:00

16 Commits

Author SHA1 Message Date
Tim Graham
91d754eb2a [1.10.x] Fixed #26778 -- Fixed ModelSignal.connect() weak argument.
Backport of 9bf8d50a678463a5a3cd52f10c830fe0ca65d2c6 from master
2016-06-18 20:45:58 -04:00
Alex Hill
85d2b80d5e [1.10.x] Fixed #26686 -- Fixed crash when registering model signals with abstract senders.
Backport of 08014fe75b4fc379523f340191a02147ec35f7a3 from master
2016-06-02 14:46:44 -04:00
Alex Hill
f91247f598 [1.10.x] Fixed #26642 -- Made ModelSignal.disconnect() work with lazy references.
Backport of ff6c6feae17120c2c7df74fb6a9dc76826a1e233 from master
2016-06-02 14:46:31 -04:00
Alex Hill
779bb82f51 Fixed #26421 -- Refactored ModelSignal to use Apps.lazy_model_operation() 2016-05-19 21:33:36 -04:00
Tim Graham
92053acbb9 Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
Simon Charette
a08fda2111 Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
2016-01-06 20:00:07 -05:00
Josh Soref
93452a70e8 Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
Tim Graham
9c5e272860 Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
Jay
f957e2b04c Added a test for model pre/post_init signals. 2014-11-21 10:39:37 -05:00
Simon Charette
eb38257e51 Fixed #21391 -- Allow model signals to lazily reference their senders. 2013-11-24 17:51:22 -05:00
Loic Bistuer
3f19b63f8b Fixed some Signal.disconnect calls from 058e434.
This would go unnoticed by the test suite because receivers are removed
automatically when they are garbage collected.

Changed all Signal.connect calls to hold strong references to ensure we
clean up after ourselves.
2013-11-18 14:38:28 -05:00
Loic Bistuer
058e434064 Merged the signals and signals_regress test packages.
This patch also made the tests less likely to pollute the global state
in case of failure.
2013-11-18 12:42:51 -05:00
Jason Myers
c3791463a5 Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02 23:48:47 -05:00
Tim Graham
96d1d4e292 Removed unused local variables in tests. 2013-10-19 08:31:38 -04:00
Claude Paroz
5c1143910e Removed most of absolute_import imports
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
2013-07-29 20:28:13 +02:00
Florian Apolloner
89f40e3624 Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00