def handle(self, *args, **options): tags = SearchTag.objects.all() for tag in tags: print tag rebuild_cache_for_tag(tag)
def rebuild_tag_cache(sender, instance, **kwargs): from public_project.tag_cache_creator import rebuild_cache_for_tag rebuild_cache_for_tag(instance)