mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 13:54:47 +03:00
Python 3 compatibility
This commit is contained in:
parent
966934c0a2
commit
fa6b80ef18
|
@ -149,7 +149,7 @@ class SchemaGenerator(object):
|
||||||
Return constructed view with respect of overrided attributes by detail_route and list_route
|
Return constructed view with respect of overrided attributes by detail_route and list_route
|
||||||
"""
|
"""
|
||||||
view = callback.cls()
|
view = callback.cls()
|
||||||
for attr, val in getattr(callback, 'initkwargs', {}).iteritems():
|
for attr, val in getattr(callback, 'initkwargs', {}).items():
|
||||||
setattr(view, attr, val)
|
setattr(view, attr, val)
|
||||||
return view
|
return view
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user