Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Pass signal **kwargs to index.should_update #73

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant