Removed 'object_indexed' check from update_index command

Conflicts:
	wagtail/wagtailsearch/management/commands/update_index.py
This commit is contained in:
Karl Hobley 2014-04-29 11:54:02 +01:00
parent f2d1c80378
commit 6847109bb9

View file

@ -25,11 +25,6 @@ class Command(BaseCommand):
# Loop through objects
for obj in model.objects.all():
# Check if this object has an 'object_indexed' function
if hasattr(obj, 'object_indexed'):
if obj.object_indexed() is False:
continue
# Get key for this object
key = toplevel_content_type + ':' + str(obj.pk)