horizon/horizon/templatetags
Akihiro Motoki b893bcdee3 Make site_branding tag work with Django 4.0
A test for site_branding tag starts to fail with Django 4.0.
It seems to happen as settings.SITE_BRANDING is _("Horizon") and
a translation marker _() is no longer evaluated during rendering.

As a solution, this commit changes the implementation of
site_branding tag to use "simple_tag" method
as django.template.Library.simple_tag() [1] seems to handle
an i18n-ed string properly.

[1] https://docs.djangoproject.com/en/4.0/howto/custom-template-tags/#simple-tags

Closes-Bug: #1980214
Change-Id: I6fdfffbeef2b405da21289d37722e3f068e27fea
2023-10-16 08:40:20 +00:00
..
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
angular.py pylint: Fix unnecessary-comprehension warning 2020-09-27 12:44:16 +09:00
bootstrap.py Stop to use the __future__ module. 2020-06-03 10:45:18 +02:00
branding.py Make site_branding tag work with Django 4.0 2023-10-16 08:40:20 +00:00
breadcrumb_nav.py Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
form_helpers.py Add pages menu to volume backups pagination 2020-05-28 16:21:45 +00:00
horizon.py Address RemovedInDjango40Warning (2) 2022-02-04 16:22:07 +09:00
parse_date.py Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
shellfilter.py Bump hacking to 1.1.0 2018-11-10 16:44:25 +09:00
sizeformat.py Address RemovedInDjango40Warning (2) 2022-02-04 16:22:07 +09:00
splitfilter.py Fix typo in horizon/exceptions.py 2021-02-24 17:59:35 +09:00
truncate_filter.py pylint: Address no-else-return warning 2020-09-27 12:44:16 +09:00