Django 1.8.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 1685 页 | 6.01 MB | 1 年前3
Django 2.1.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 1878 页 | 6.40 MB | 1 年前3
Django 1.10.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 1817 页 | 6.19 MB | 1 年前3
Django 2.0.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 1880 页 | 6.41 MB | 1 年前3
Django 3.0.x Documentation**kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any) sender=Any) sig.connect(callback, sender=None) Comments If you were using Django 0.96’s django.contrib.comments app, you’ll need to upgrade to the new comments app introduced in 1.0. See the upgrade guide for value, sig = signed_value.rsplit(self.sep, 1) if constant_time_compare(sig, self.signature(value)): return value raise BadSignature('Signature "%s" does not match' % sig) [docs]class0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 3.0.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 2002 页 | 6.73 MB | 1 年前3
Django 3.1.x Documentationpractice, signal handlers are usually defined in a signals submodule of the application they relate to. Sig- nal receivers are connected in the ready() method of your application configuration class. If you’re Sent when a ManyToManyField is changed on a model instance. Strictly speaking, this is not a model sig- nal since it is sent by the ManyToManyField, but since it complements the pre_save/post_save and **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect(callback, sig, sender=Any)0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 5.1.2 Documentationmore information. • sender –Specifies a particular sender to receive signals from. See Connecting to sig- nals sent by specific senders for more information. • weak –Django stores signal handlers as weak connect() method. • dispatch_uid –A unique identifier for a signal receiver in cases where duplicate sig- nals may be sent. See Preventing duplicate signals for more information. Let’s see how this works signals get sent many times, but you’ll only be interested in receiving a certain subset of those sig- nals. For example, consider the django.db.models.signals.pre_save signal sent before a model gets0 码力 | 2923 页 | 9.62 MB | 1 年前3
Django 5.1 Documentationmore information. • sender –Specifies a particular sender to receive signals from. See Connecting to sig- nals sent by specific senders for more information. • weak –Django stores signal handlers as weak connect() method. • dispatch_uid –A unique identifier for a signal receiver in cases where duplicate sig- nals may be sent. See Preventing duplicate signals for more information. Let’s see how this works signals get sent many times, but you’ll only be interested in receiving a certain subset of those sig- nals. For example, consider the django.db.models.signals.pre_save signal sent before a model gets0 码力 | 2917 页 | 9.59 MB | 1 年前3
共 30 条
- 1
- 2
- 3













