Job.create should also accept arguments in list format.

main
Selwin Ong 12 years ago
parent 7c63b72c99
commit a0c9267550

@ -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):

Loading…
Cancel
Save