code: def generic_key_facets(self, request):
          
  
          excluded_apps = Q(app_label__in=EXCLUDED_APPS_FROM_FACETS)
          excluded_models = Q()
          for app_label, model in EXCLUDED_MODELS_FROM_FACETS:
              excluded_models = excluded_models | Q(app_label=app_label,
                      model=model)
          values = "model", "app_label", "id"
          content_types = ContentType.objects.values_list(*values) \
                  .exclude(excluded_apps | excluded_models)
          return JsonResponse(dict([(str(a), {"app_label": str(b), "id": str(c)})
                  for a, b, c in content_types]))
docs: Find all available facets/Models for VisualSearch