From bf049a7ebeaf430d0d0cc49fa48a9ffa16ec0458 Mon Sep 17 00:00:00 2001 From: Isaac van Bakel Date: Wed, 7 Feb 2024 12:26:22 +0100 Subject: [PATCH] Import all helpful types in prod settings template All of these types may potentially be used by users of this settings template, so it's handy to add them in. This avoids missing import errors later. This is an especially helpful change for the Zulip docker image, where importing extra types is a bit annoying. Fixes zulip/docker-zulip#252 --- zproject/prod_settings_template.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.py index adc18a92cddd9..e4e464541d1be 100644 --- a/zproject/prod_settings_template.py +++ b/zproject/prod_settings_template.py @@ -167,7 +167,23 @@ ## optionally using LDAP as an authentication mechanism. import ldap -from django_auth_ldap.config import GroupOfNamesType, LDAPGroupQuery, LDAPSearch # noqa: F401 +from django_auth_ldap.config import ( + LDAPSearch, + LDAPSearchUnion + LDAPGroupQuery, + LDAPGroupType, + PosixGroupType, + MemberDNGroupType, + NestedMemberDNGroupType, + GroupOfNamesType, + NestedGroupOfNamesType, + GroupOfUniqueNamesType, + NestedGroupOfUniqueNamesType, + ActiveDirectoryGroupType, + NestedActiveDirectoryGroupType, + OrganizationalRoleGroupType, + NestedOrganizationalRoleGroupType, +) # noqa: F401 ## Connecting to the LDAP server. ##