def handle(self, *args, **options): sound_qs = Sound.objects.select_related("pack", "user", "license") \ .filter(is_index_dirty=True, moderation_state='OK', processing_state='OK') add_all_sounds_to_solr(sound_qs, mark_index_clean=True)
def handle(self, *args, **options): sound_qs = Sound.objects.select_related("pack", "user", "license") \ .filter(processing_state="OK", moderation_state="OK") add_all_sounds_to_solr(sound_qs)
def read(self, request): sound_qs = Sound.objects.select_related("pack", "user", "license") \ .filter(processing_state="OK", moderation_state="OK") add_all_sounds_to_solr(sound_qs) return rc.ALL_OK