Merge pull request #194 from selwin/master

Job.create should allow args to be passed in list format
This commit is contained in:
Vincent Driessen 2013-03-17 20:04:01 -07:00
commit bf802a15be
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Job(object):
args = ()
if kwargs is None:
kwargs = {}
assert isinstance(args, tuple), '%r is not a valid args list.' % (args,)
assert isinstance(args, (tuple, list)), '%r is not a valid args list.' % (args,)
assert isinstance(kwargs, dict), '%r is not a valid kwargs dict.' % (kwargs,)
job = cls(connection=connection)
if inspect.ismethod(func):