From d4e0646097e0eced0341308e743f4950bb22a908 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Sun, 28 Feb 2016 15:11:48 +0100 Subject: [PATCH] Also fetches name override from q_options --- 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 f4e0036..31690c8 100644 --- a/django_q/tasks.py +++ b/django_q/tasks.py @@ -19,7 +19,7 @@ def async(func, *args, **kwargs): """Queue a task for the cluster.""" keywords = kwargs.copy() opt_keys = ('hook', 'group', 'save', 'sync', 'cached', 'iter_count', 'iter_cached', 'chain', 'broker') - q_options = keywords.pop('q_options', None) + q_options = keywords.pop('q_options', {}) # get an id tag = uuid() # build the task package