diff --git a/django/utils/functional.py b/django/utils/functional.py index d1514d5728..2c13c90bbb 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -1,6 +1,6 @@ -def curry(*args, **kwargs): +def curry(func, *args, **kwargs): def _curried(*moreargs, **morekwargs): - return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items())) + return func(*(args+moreargs), **dict(kwargs, **morekwargs)) return _curried class Promise: