From 25445e59cf845a1017d38cb10981925c27dbe6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 2 Oct 2023 21:19:25 +0200 Subject: [PATCH] Add i18n to builtin template tags. --- .pre-commit-config.yaml | 2 -- src/project/settings.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 132db2b..5c4f58b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,8 +50,6 @@ repos: rev: v3.1.0 hooks: - id: add-trailing-comma - args: - - --py36-plus - repo: https://github.com/hadialqattan/pycln rev: v2.2.2 hooks: diff --git a/src/project/settings.py b/src/project/settings.py index 12ed44e..349ee9e 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -82,6 +82,9 @@ TEMPLATES = [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], + "builtins": [ + "django.templatetags.i18n", + ], }, }, ]