From 5a02e20860e5932679741c71bf22e608224f563e Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 8 Jun 2021 17:38:53 +0200 Subject: [PATCH] settings: define form rendrer allowing widgets templates override (#54675) --- src/authentic2/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/authentic2/settings.py b/src/authentic2/settings.py index 514ad43c9..732a72381 100644 --- a/src/authentic2/settings.py +++ b/src/authentic2/settings.py @@ -153,6 +153,7 @@ INSTALLED_APPS = ( 'xstatic.pkg.jquery', 'xstatic.pkg.jquery_ui', 'xstatic.pkg.select2', + 'django.forms', ) INSTALLED_APPS = tuple(plugins.register_plugins_installed_apps(INSTALLED_APPS)) @@ -351,6 +352,8 @@ DJANGO_RBAC_PERMISSIONS_HIERARCHY = { 'manage_authorizations': ['view', 'search'], } +FORM_RENDERER = 'django.forms.renderers.TemplatesSetting' + SILENCED_SYSTEM_CHECKS = ["auth.W004"] # Get select2 from local copy.