jinja2-url-template-validate
dgtlmoon 2 years ago
parent 10813b130c
commit 8677b65cc8

@ -93,7 +93,7 @@ class model(dict):
@property @property
def link(self): def link(self):
url = self.get('url', '') url = self.get('url', '')
ready_url = '' ready_url = url
if '{%' in url or '{{' in url: if '{%' in url or '{{' in url:
from jinja2 import Environment from jinja2 import Environment
# Jinja2 available in URLs along with https://pypi.org/project/jinja2-time/ # Jinja2 available in URLs along with https://pypi.org/project/jinja2-time/

Loading…
Cancel
Save