algolia / algoliasearch-django

Seamless integration of Algolia into your Django project.
https://www.algolia.com
MIT License
172 stars 65 forks source link

Bug: auto_indexing=False not taken into account when calling algoliasearch_django.register #276

Open gregsadetsky opened 5 years ago

gregsadetsky commented 5 years ago

Description

registration.py's register accepts an auto_indexing keyword (definition). Unfortunately, setting it to False has no effect as:

Steps To Reproduce

# index.py
from algoliasearch_django import register, AlgoliaIndex
from models import MyModel

class MyModelIndex(AlgoliaIndex):
  # ...

register(MyModel, MyModelIndex, auto_indexing=False)

# somewhere else
m = MyModel()
m.save()
# at this point, __post_save_receiver gets called
tkrugg commented 3 years ago

Hi @gregsadetsky that's a great point. This PR is addressing it https://github.com/algolia/algoliasearch-django/pull/305