diff --git a/django/utils/functional.py b/django/utils/functional.py index d1514d57286..2c13c90bbb3 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: