From 02221d7d10ef9c75aafbda1a9ed90e23cf1ce8e6 Mon Sep 17 00:00:00 2001 From: hottwaj Date: Wed, 19 Feb 2014 11:05:57 +0000 Subject: [PATCH] changed dict.iteritems() call to dict.items() for python 3 compatibility... --- polymorphic/polymorphic_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymorphic/polymorphic_model.py b/polymorphic/polymorphic_model.py index 3256b0d..ce1aeee 100644 --- a/polymorphic/polymorphic_model.py +++ b/polymorphic/polymorphic_model.py @@ -183,7 +183,7 @@ class PolymorphicModel(six.with_metaclass(PolymorphicModelBase, models.Model)): add_model(model, field_name, result) def add_all_super_models(model, result): - for super_cls, field_to_super in model._meta.parents.iteritems(): + for super_cls, field_to_super in model._meta.parents.items(): if field_to_super is not None: #if not a link to a proxy model field_name = field_to_super.name #the field on model can have a different name to super_cls._meta.module_name, if the field is created manually using 'parent_link' add_model_if_regular(super_cls, field_name, result)