This is to avoid circular import issues as most receivers.py modules also import models. It's not entirely clear what circumstances are required to get the circular import - it seems to be when using django-debug-toolbar>=1.0, which changes the way the URLs are monkey-patched. This changes adopts the recommended practice for importing signal receivers: - https://groups.google.com/forum/#!msg/django-developers/PReHoxwwG_c/M-asj72ks7YJ - http://stackoverflow.com/a/14192257/25517 Fixes #1125 (I think)master
|
|
||
|
1 |
|
|
|
||
| 17 |
|
17 |
|
| 18 |
|
18 |
|
| 19 |
|
19 |
|
| 20 |
|
|
|
| 21 |
|
|
|
| 22 |
|
|
|
| 23 |
|
|
|
|
||
|
1 |
|
|
|
||
| 62 |
|
62 |
|
| 63 |
|
63 |
|
| 64 |
|
64 |
|
| 65 |
|
|
|
| 66 |
|
|
|
|
||
| 26 |
|
26 |
|
| 27 |
|
27 |
|
| 28 |
|
28 |
|
|
29 |
|
|
| 29 |
|
30 |
|
| 30 |
|
31 |
|
| 31 |
|
32 |
|
|
|
||
|
1 |
|
|
|
2 |
|
|
|
||
| 15 |
|
15 |
|
| 16 |
|
16 |
|
| 17 |
|
17 |
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
|
| 21 |
|
|
|
|
||
| 3 |
|
3 |
|
| 4 |
|
4 |
|
| 5 |
|
5 |
|
|
6 |
|
|
| 6 |
|
7 |
|
| 7 |
|
8 |
|
| 8 |
|
9 |
|
|
|
||
|
1 |
|
|
|
||
| 17 |
|
17 |
|
| 18 |
|
18 |
|
| 19 |
|
19 |
|
| 20 |
|
|
|
| 21 |
|
|
|
| 22 |
|
|
|
|
||
| 116 |
|
116 |
|
| 117 |
|
117 |
|
| 118 |
|
118 |
|
| 119 |
|
|
|
|
119 |
|
|
| 120 |
|
120 |
|
| 121 |
|
121 |
|
| 122 |
|
122 |
|