From 397503f5b22c94739113a3a51c3c099921e8aa9d Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Wed, 24 Feb 2016 10:52:25 +0100 Subject: [PATCH] Adds optional `task_name` argument --- django_q/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_q/tasks.py b/django_q/tasks.py index 5be767c..842ed9e 100644 --- a/django_q/tasks.py +++ b/django_q/tasks.py @@ -24,7 +24,7 @@ def async(func, *args, **kwargs): tag = uuid() # build the task package task = {'id': tag[1], - 'name': q_options.pop('task_name', None) or tag[0], + 'name': keywords.pop('task_name', None) or tag[0], 'func': func, 'args': args} # push optionals