celery-haystack icon indicating copy to clipboard operation
celery-haystack copied to clipboard

Check if an object is still in index_queryset

Open Craterdome opened this issue 8 years ago • 3 comments

There is an issue where if an object is updated in a way that removes it from the index_queryset it does not get removed upon update. This can be fixed by overriding update_object or instead should_update to check if an object is no longer in the queryset and removing instead of updating.

Craterdome avatar Dec 23 '16 01:12 Craterdome

if not self.index_queryset(**kwargs).filter(id=instance.id).exists(): this would be a better way to write it

Craterdome avatar Dec 28 '16 23:12 Craterdome

what is ProjectIndex?

yeago avatar Mar 24 '17 20:03 yeago

Is this still an issue? If so, can you provide a failing test for the test suite?

bigjust avatar Sep 28 '17 04:09 bigjust