def update_index(sender, instance, **kwargs):
import search
print "update pd index %s [update %s]" % (instance, 'created' in kwargs)
def update_index(sender, instance, **kwargs):
import search
print "update pd index %s [update %s]" % (instance, 'created' in kwargs)