Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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)