mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 00:33:17 +00:00
Removed 'object_indexed' check from update_index command
Conflicts: wagtail/wagtailsearch/management/commands/update_index.py
This commit is contained in:
parent
f2d1c80378
commit
6847109bb9
1 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue