mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 03:28:13 +08:00
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:
+4
-2
@@ -31,6 +31,8 @@ def call_hook(sender, instance, **kwargs):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# args: task
|
||||||
|
pre_enqueue = Signal()
|
||||||
|
|
||||||
pre_enqueue = Signal(providing_args=["task"])
|
# args: func, task
|
||||||
pre_execute = Signal(providing_args=["func", "task"])
|
pre_execute = Signal()
|
||||||
|
|||||||
Reference in New Issue
Block a user