def reindex_redis_search(sender, instance, **kwargs):
    """ Callback function which recalculates what is searchable in redis from sender. """
    flush_redis()
    [add_model_to_redis(model) for model in TestModelPost.objects.all()]
    dump_redis()
def reindex_redis_search(sender, instance, **kwargs):
    """ Callback function which recalculates what is searchable in redis from sender. """
    logger.info("Re-creating Search Autocomplete Index ...")
    flush_redis()
    [add_model_to_redis(model) for model in Post.objects.all()]
    dump_redis()