mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[py3] Fixed access to dict keys/values/items.
This commit is contained in:
@@ -6,6 +6,7 @@ from django.core.exceptions import ImproperlyConfigured
|
||||
from django.template.response import TemplateResponse
|
||||
from django.utils.log import getLogger
|
||||
from django.utils.decorators import classonlymethod
|
||||
from django.utils import six
|
||||
|
||||
logger = getLogger('django.request')
|
||||
|
||||
@@ -35,7 +36,7 @@ class View(object):
|
||||
"""
|
||||
# Go through keyword arguments, and either save their values to our
|
||||
# instance, or raise an error.
|
||||
for key, value in kwargs.iteritems():
|
||||
for key, value in six.iteritems(kwargs):
|
||||
setattr(self, key, value)
|
||||
|
||||
@classonlymethod
|
||||
|
||||
Reference in New Issue
Block a user