From 3144d0c80a0c6e892b193068fe3479413ecbf43f Mon Sep 17 00:00:00 2001 From: Bastien Vallet Date: Mon, 19 Oct 2020 12:12:37 +0200 Subject: [PATCH] Fix deprecation warning RemovedInDjango40Warning RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring. --- django_q/signals.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django_q/signals.py b/django_q/signals.py index 0205d5e..8083307 100644 --- a/django_q/signals.py +++ b/django_q/signals.py @@ -31,6 +31,8 @@ def call_hook(sender, instance, **kwargs): ) ) +# args: task +pre_enqueue = Signal() -pre_enqueue = Signal(providing_args=["task"]) -pre_execute = Signal(providing_args=["func", "task"]) +# args: func, task +pre_execute = Signal()