Skip to content

Commit

Permalink
uses django.urls resolve() to send request to search_results wherever…
Browse files Browse the repository at this point in the history
… it exists in Arches, prj, or app re #10699
  • Loading branch information
whatisgalen committed Apr 13, 2024
1 parent 45a51a9 commit f8366b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arches/app/search/search_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def order_cards(subcards_added=True):

def export(self, format, report_link):
ret = []
search_res_json = SearchView.search_results(self.search_request)
func, args, kwargs = resolve(reverse('search_results'))
kwargs["request"] = self.search_request
search_res_json = func(*args, **kwargs)
if search_res_json.status_code == 500:
return ret
results = JSONDeserializer().deserialize(search_res_json.content)
Expand Down

0 comments on commit f8366b6

Please sign in to comment.