def index_picture(picture_id, picture_info=None, **kwargs):
from picture.models import Picture
try:
return Picture.objects.get(id=picture_id).search_index(picture_info, **kwargs)
def index_picture(picture_id, picture_info=None, **kwargs):
from picture.models import Picture
try:
return Picture.objects.get(id=picture_id).search_index(picture_info, **kwargs)