From 9ca401176eaef4e3681ad93b10caacb88f372132 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Fri, 3 Apr 2015 18:42:17 +0100 Subject: [PATCH] Clean up E112 error --- wagtail/wagtailadmin/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/wagtailadmin/utils.py b/wagtail/wagtailadmin/utils.py index 6d4c64b4ea..017fa61cbd 100644 --- a/wagtail/wagtailadmin/utils.py +++ b/wagtail/wagtailadmin/utils.py @@ -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(