From fa6b80ef1880ba1e3ef1e7f2faea467866f914c2 Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 11 Aug 2016 22:33:39 +0300 Subject: [PATCH] Python 3 compatibility --- rest_framework/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index 26d5e5dac..d6b7cf8a8 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -149,7 +149,7 @@ class SchemaGenerator(object): Return constructed view with respect of overrided attributes by detail_route and list_route """ view = callback.cls() - for attr, val in getattr(callback, 'initkwargs', {}).iteritems(): + for attr, val in getattr(callback, 'initkwargs', {}).items(): setattr(view, attr, val) return view