Use items() instead of iteritems().
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -188,7 +188,7 @@ class ModelAttribute(object):
|
|||||||
result = []
|
result = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for type_name, attributes in cls.__registry[model].iteritems():
|
for type_name, attributes in cls.__registry[model].items():
|
||||||
if not type_names or type_name in type_names:
|
if not type_names or type_name in type_names:
|
||||||
result.extend(attributes)
|
result.extend(attributes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user