Clean up E112 error

pull/1155/head
Karl Hobley 2015-04-03 18:42:17 +01:00
rodzic dd61cc799e
commit 9ca401176e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -29,8 +29,8 @@ def get_object_usage(obj):
}).values_list('id', flat=True)
)
else:
# if the relation is between obj and an object that has a page as a
# property, return the page
# if the relation is between obj and an object that has a page as a
# property, return the page
for f in relation.model._meta.fields:
if isinstance(f, ParentalKey) and issubclass(f.rel.to, Page):
pages |= Page.objects.filter(