From 784d9d7dd1e22364e5a45fcec5ea3c5554880ccc Mon Sep 17 00:00:00 2001 From: Francesco Filicetti Date: Fri, 16 Jul 2021 13:00:22 +0200 Subject: [PATCH] fix: request in link ph --- setup.py | 2 +- src/cms/templates/placeholders.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6d042081..1a482923 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def get_requirements(fname='requirements.txt'): setup( name="unicms", - version='0.22.6', + version='0.22.7', description="uniCMS is a Django Web Content Management System", long_description=README, long_description_content_type='text/markdown', diff --git a/src/cms/templates/placeholders.py b/src/cms/templates/placeholders.py index c3929c71..f1f985cb 100644 --- a/src/cms/templates/placeholders.py +++ b/src/cms/templates/placeholders.py @@ -105,7 +105,8 @@ def __init__(self, context:dict, content:dict): def build_data_dict(self): data = {'name': self.entry.name, - 'url': self.entry.url} + 'url': self.entry.url, + 'request': self.request} return {**self.content,**data}