Ejemplo n.º 1
0
    def reindex(self, request, queryset):
        from cbh_chembl_ws_extension.compounds import CBHCompoundBatchResource

        cbr = CBHCompoundBatchResource()
        cbr.reindex_elasticsearch(request)
        self.message_user(request, "Successfully reindexed ChemiReg compounds")
    def handle(self, *args, **options):
        from cbh_chembl_ws_extension.compounds import CBHCompoundBatchResource

        cbr = CBHCompoundBatchResource()
        cbr.reindex_elasticsearch(HttpRequest())