Skip to content

Commit

Permalink
fix: get organization picture url instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
vncsna committed Apr 25, 2024
1 parent 089713a commit 94573f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bd_api/apps/api/v1/search_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

from django.core.files.storage import default_storage as storage
from django.http import JsonResponse
from haystack.forms import FacetedSearchForm
from haystack.generic_views import FacetedSearchView
Expand Down Expand Up @@ -176,6 +177,7 @@ def as_search_result(result: SearchResult):
result.organization_website or [],
result.organization_description or [],
):
picture = storage.url(picture)
organization.append(
{
"id": pk,
Expand Down

0 comments on commit 94573f6

Please sign in to comment.