Debian Codegraph @

src/organizations/app_settings.py

raw symbols SCIP
1
2 from django.conf import settings
3 from django.contrib.auth.models import User
4
5 from organizations.utils import model_field_attr
6
7 ORGS_INVITATION_BACKEND = getattr(
8 settings, "INVITATION_BACKEND", "organizations.backends.defaults.InvitationBackend"
9 )
10
11 ORGS_REGISTRATION_BACKEND = getattr(
12 settings,
13 "REGISTRATION_BACKEND",
14 "organizations.backends.defaults.RegistrationBackend",
15 )
16
17 ORGS_EMAIL_LENGTH = model_field_attr(User, "email", "max_length")