Skip to content

Pass signal **kwargs to index.should_update #73

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

micahscopes
Copy link

@micahscopes micahscopes commented Jun 25, 2019

In the django-haystack documentation, it's said that signal keyword arguments will be passed to should_update, and sure enough they are here.

I'm implementing custom signals to be used with celery-haystack and would like to do some fancy checking in should_update to see if my django model objects should be reindexed. I've made this same change in our fork of celery-haystack, and thought I'd submit it upstream.

(Looks like this is very tangentially related to issue #61.)

In the django-haystack documentation, [it's said](https://django-haystack.readthedocs.io/en/master/searchindex_api.html?highlight=should_update#SearchIndex.should_update) that signal keyword arguments will be passed to `should_update`, and sure enough they are [here](https://github.com/django-haystack/django-haystack/blob/802b0f6f4b3b99314453261876a32bac2bbec94f/haystack/indexes.py#L318-L319)

I'm implementing custom signals to be used with celery-haystack and would like to do some fancy checking in `should_update` to see if my django model objects should be reindexed.  I've made this same change in our fork of celery-haystack, and thought I'd submit it upstream.

Looks like this is very tangentially related to issue django-haystack#61
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant