1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #26778 -- Fixed ModelSignal.connect() weak argument.

This commit is contained in:
Tim Graham
2016-06-18 20:45:38 -04:00
committed by GitHub
parent 8ba44ecda0
commit 9bf8d50a67
2 changed files with 18 additions and 2 deletions

View File

@@ -27,7 +27,10 @@ class ModelSignal(Signal):
return partial_method(sender)
def connect(self, receiver, sender=None, weak=True, dispatch_uid=None, apps=None):
self._lazy_method(super(ModelSignal, self).connect, apps, receiver, sender, dispatch_uid=dispatch_uid)
self._lazy_method(
super(ModelSignal, self).connect, apps, receiver, sender,
weak=weak, dispatch_uid=dispatch_uid,
)
def disconnect(self, receiver=None, sender=None, weak=None, dispatch_uid=None, apps=None):
if weak is not None: