Fixed a Python >= 3.7 incompatibility (see PEP 479)

This commit is contained in:
Jonas Haag authored and Hugo Osvaldo Barrera committed 2015-12-16 10:31:36 -03:00
1 parent ee2e0a95ea
commit 0b87a5ecc8
1 file changed
+2 -2
+2 -2
View File
@@ -297,7 +297,7 @@ class PolymorphicQuerySet(QuerySet):
if self.polymorphic_disabled:
for o in base_iter:
yield o
raise StopIteration
return
while True:
base_result_objects = []
@@ -317,7 +317,7 @@ class PolymorphicQuerySet(QuerySet):
yield o
if reached_end:
raise StopIteration
return
def __repr__(self, *args, **kwargs):
if self.model.polymorphic_query_multiline_output: