Registering receivers is a tricky business pre-Django 1.7 as they get registered at the same time when models get registered, but require the sending model to already be in the app cache. It's surprising we don't see more issues! Recommendations: * Avoid calls to get_model in modules that get called during app init at all cost * Don't use get_model in your own code. Just import directly. * Switch to Django 1.7 :) This commit probably fixes the issue in #1205. But get_model calls to fetch the category, product image and stock record will all fail, because receivers listen to their signals. This commit also moves the catalogue receiver into it's own receivers module, because that's how we do it elsewhere. That won't make a difference to the issues though.master
|
||
| 64 | 64 |
|
| 65 | 65 |
|
| 66 | 66 |
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 67 | 71 |
|
| 68 | 72 |
|
| 69 | 73 |
|
|
||
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 |
|
|
| 10 | 9 |
|
| 11 | 10 |
|
| 12 | 11 |
|
|
||
| 16 | 15 |
|
| 17 | 16 |
|
| 18 | 17 |
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 19 | 23 |
|
| 20 | 24 |
|
| 21 | 25 |
|
|
||
| 67 | 71 |
|
| 68 | 72 |
|
| 69 | 73 |
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
|
|
||
| 26 | 26 |
|
| 27 | 27 |
|
| 28 | 28 |
|
| 29 |
|
|
| 29 |
|
|
| 30 | 30 |
|
|
||
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
|
||
| 278 | 278 |
|
| 279 | 279 |
|
| 280 | 280 |
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 284 |
|
|
| 285 |
|
|
| 286 |
|
|
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 281 | 290 |
|
| 282 | 291 |
|
| 283 | 292 |
|