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.
This commit is contained in:
Bastien Vallet
2020-10-19 12:12:37 +02:00
parent 22b6f8ec5a
commit 3144d0c80a

View File

@@ -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()