0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
This commit is contained in:
Matt Westcott 2019-01-29 17:09:53 +00:00
parent 50e72dc58b
commit 94c9a99156

View File

@ -20,7 +20,7 @@ def post_delete_signal_handler(instance, **kwargs):
def register_signal_handlers():
# Loop through list and register signal handlers for each one
for model in index.get_indexed_models():
if getattr(model, 'search_auto_update', True) == False:
if not getattr(model, 'search_auto_update', True):
continue
post_save.connect(post_save_signal_handler, sender=model)