Fix #492 -- Force deterministic ordering of some signals

This commit is contained in:
Raphael Michel
2017-05-15 13:09:23 +02:00
parent 5ff6d0b014
commit 7769aaccea
6 changed files with 8 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ class EventPluginSignal(django.dispatch.Signal):
if not hasattr(app, 'compatibility_errors') or not app.compatibility_errors:
response = receiver(signal=self, sender=sender, **named)
responses.append((receiver, response))
return responses
return sorted(responses, key=lambda r: (receiver.__module__, receiver.__name__))
class DeprecatedSignal(django.dispatch.Signal):