Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.28 kb
from celeryutils import task
from feedback.models import Opinion
from elasticutils import get_es, es_required
@task
@es_required
def add_to_index(pks, es, **kw):
for opinion in Opinion.objects.filter(pk__in=pks):
opinion.update_index(bulk=True)
es.force_bulk()
Jump to Line
Something went wrong with that request. Please try again.