def delete(self, *args, **kwargs): """ Update the index as items are deleted. """ id_cache = self.pk super(Audio, self).delete(*args, **kwargs) from search.tasks import delete_item delete_item.delay(id_cache, settings.SOLR_AUDIO_URL)
def delete(self, *args, **kwargs): """ Note that this doesn't get called when an entire queryset is deleted, but that should be OK. """ id_cache = self.pk super(Document, self).delete(*args, **kwargs) from search.tasks import delete_item delete_item.delay(id_cache, settings.SOLR_OPINION_URL)
def delete(self, *args, **kwargs): """ If the item is deleted, we need to update the caches that previously contained it. Note that this doesn't get called when an entire queryset is deleted, but that should be OK. """ id_cache = self.pk super(Document, self).delete(*args, **kwargs) from search.tasks import delete_item delete_item.delay(id_cache, settings.SOLR_OPINION_URL)