mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Fixed access to dict keys/values/items.
This commit is contained in:
@@ -178,7 +178,7 @@ def allow_lazy(func, *resultclasses):
|
||||
"""
|
||||
@wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
for arg in list(args) + kwargs.values():
|
||||
for arg in list(args) + list(six.itervalues(kwargs)):
|
||||
if isinstance(arg, Promise):
|
||||
break
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user