Skip to content

Commit bf049a7

Browse files
author
Isaac van Bakel
committed
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
1 parent 9455847 commit bf049a7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

zproject/prod_settings_template.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,23 @@
167167
## optionally using LDAP as an authentication mechanism.
168168

169169
import ldap
170-
from django_auth_ldap.config import GroupOfNamesType, LDAPGroupQuery, LDAPSearch # noqa: F401
170+
from django_auth_ldap.config import (
171+
LDAPSearch,
172+
LDAPSearchUnion
173+
LDAPGroupQuery,
174+
LDAPGroupType,
175+
PosixGroupType,
176+
MemberDNGroupType,
177+
NestedMemberDNGroupType,
178+
GroupOfNamesType,
179+
NestedGroupOfNamesType,
180+
GroupOfUniqueNamesType,
181+
NestedGroupOfUniqueNamesType,
182+
ActiveDirectoryGroupType,
183+
NestedActiveDirectoryGroupType,
184+
OrganizationalRoleGroupType,
185+
NestedOrganizationalRoleGroupType,
186+
) # noqa: F401
171187

172188
## Connecting to the LDAP server.
173189
##

0 commit comments

Comments
 (0)