Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/d/j/django-brutebuster-signals-HEAD/brutebuster_signals/models.py   django-brutebuster-signals(Download)
def failed_attempt_pre_save_handler(sender, instance, signal, *args, **kwargs):
    if instance.id:
        old_object = FailedAttempt.objects.get(id=instance.id)
        if old_object.failures < instance.failures:
            send_notification(instance)