diff --git a/django_q/tasks.py b/django_q/tasks.py index 842ed9e..f4e0036 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': keywords.pop('task_name', None) or tag[0], + 'name': keywords.pop('task_name', None) or q_options.pop('task_name', None) or tag[0], 'func': func, 'args': args} # push optionals