From 084921ac0d080022752958bc36927ac87014d1cf Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 18 Dec 2020 13:14:20 -0800 Subject: [PATCH] first_setup: Use template variable to refresh page Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/middleware.py | 5 ++++- plinth/templates/first_setup.html | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plinth/middleware.py b/plinth/middleware.py index 498e9b709..51d31a576 100644 --- a/plinth/middleware.py +++ b/plinth/middleware.py @@ -111,5 +111,8 @@ class FirstSetupMiddleware(MiddlewareMixin): if not setup.is_first_setup_running: return - context = {'is_first_setup_running': setup.is_first_setup_running} + context = { + 'is_first_setup_running': setup.is_first_setup_running, + 'refresh_page_sec': 3 + } return render(request, 'first_setup.html', context) diff --git a/plinth/templates/first_setup.html b/plinth/templates/first_setup.html index 21e94b29c..79e4e1bf7 100644 --- a/plinth/templates/first_setup.html +++ b/plinth/templates/first_setup.html @@ -13,7 +13,6 @@ display: none; } - {% endblock %}