From df98b6570499f3b8a1b35dc5a69a44c1335fc258 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Mon, 7 Jul 2025 11:54:02 +0300 Subject: [PATCH] feat: pass version on static files (#1318) --- cms/version.py | 2 +- files/context_processors.py | 3 +++ templates/common/body-scripts.html | 2 +- templates/common/head-links.html | 10 +++++----- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/cms/version.py b/cms/version.py index 45311203..02f4b901 100644 --- a/cms/version.py +++ b/cms/version.py @@ -1 +1 @@ -VERSION = "6.2.0" +VERSION = "6.3.0" diff --git a/files/context_processors.py b/files/context_processors.py index 2e540e62..a6c822f7 100644 --- a/files/context_processors.py +++ b/files/context_processors.py @@ -1,5 +1,7 @@ from django.conf import settings +from cms.version import VERSION + from .frontend_translations import get_translation, get_translation_strings from .methods import is_mediacms_editor, is_mediacms_manager @@ -37,6 +39,7 @@ def stuff(request): ret["USE_SAML"] = settings.USE_SAML ret["USE_RBAC"] = settings.USE_RBAC ret["USE_ROUNDED_CORNERS"] = settings.USE_ROUNDED_CORNERS + ret["VERSION"] = VERSION if request.user.is_superuser: ret["DJANGO_ADMIN_URL"] = settings.DJANGO_ADMIN_URL diff --git a/templates/common/body-scripts.html b/templates/common/body-scripts.html index bc3c13ad..d69c3164 100644 --- a/templates/common/body-scripts.html +++ b/templates/common/body-scripts.html @@ -1,3 +1,3 @@ {% load static %} - \ No newline at end of file + \ No newline at end of file diff --git a/templates/common/head-links.html b/templates/common/head-links.html index 37e37fe5..6b93a303 100644 --- a/templates/common/head-links.html +++ b/templates/common/head-links.html @@ -22,10 +22,10 @@ {% endif %} - - + + - - + + - +