Skip to content

Commit

Permalink
Import all helpful types in prod settings template
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Isaac van Bakel committed Feb 7, 2024
1 parent 9455847 commit bf049a7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion zproject/prod_settings_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
##
Expand Down

0 comments on commit bf049a7

Please sign in to comment.