From 3e6281b3118ddb4c037da872b383ffe121382959 Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Wed, 19 Jun 2024 08:42:01 +0200 Subject: [PATCH] Do not reify releases list in pyramid request Signed-off-by: Mattia Verga --- bodhi-server/bodhi/server/__init__.py | 2 +- news/PR5684.bug | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/PR5684.bug diff --git a/bodhi-server/bodhi/server/__init__.py b/bodhi-server/bodhi/server/__init__.py index e1c17a0f20..c80760f78b 100644 --- a/bodhi-server/bodhi/server/__init__.py +++ b/bodhi-server/bodhi/server/__init__.py @@ -243,7 +243,7 @@ def main(global_config, testing=None, session=None, **settings): config.add_request_method(get_cacheregion, 'cache', reify=True) config.add_request_method(get_buildinfo, 'buildinfo', reify=True) config.add_request_method(get_from_tag_inherited, 'from_tag_inherited', reify=True) - config.add_request_method(get_releases, 'releases', reify=True) + config.add_request_method(get_releases, 'releases', property=True) # Templating config.add_mako_renderer('.html', settings_prefix='mako.') diff --git a/news/PR5684.bug b/news/PR5684.bug new file mode 100644 index 0000000000..f59fd8012e --- /dev/null +++ b/news/PR5684.bug @@ -0,0 +1 @@ +Fixed the release list web page which was not updated after a release changed state