Skip to content

Commit

Permalink
fix: Generic views not inline with the default portal search settings
Browse files Browse the repository at this point in the history
DEFAULT_RESULT_FORMAT_VERSION was not used for setting the default search
setting, causing a problem now that the version has been changed.
  • Loading branch information
NickolausDS committed Mar 27, 2023
1 parent c58b293 commit f372a75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion globus_portal_framework/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
load_search_client
)
import globus_portal_framework.exc
from globus_portal_framework.constants import DEFAULT_RESULT_FORMAT_VERSION


log = logging.getLogger(__name__)

Expand Down Expand Up @@ -124,7 +126,7 @@ def get_context_data(self, index):
'offset': self.offset,
'sort': self.sort,
'limit': self.results_per_page,
'result_format_version': '2017-09-01',
'result_format_version': DEFAULT_RESULT_FORMAT_VERSION,
}
try:
index_info = self.get_index_info(index)
Expand Down

0 comments on commit f372a75

Please sign in to comment.