From 8db01d1789dbe4152cd8dca71b9d476500c813d9 Mon Sep 17 00:00:00 2001 From: Mitch Dawson Date: Mon, 12 Feb 2024 12:40:52 +0000 Subject: [PATCH] resolve page title display issue --- home/service/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/service/search.py b/home/service/search.py index 95f1092f..f6a7afa5 100644 --- a/home/service/search.py +++ b/home/service/search.py @@ -52,8 +52,8 @@ def _get_paginator(self, items_per_page: int) -> Paginator: def _get_context(self) -> dict[str, Any]: - if self.form["query"].value: - page_title = f'Search for "{self.form["query"].value}" - Data catalogue' + if self.form["query"].value(): + page_title = f'Search for "{self.form["query"].value()}" - Data catalogue' else: page_title = "Search - Data catalogue"