Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!196
Resolve "Select primary group if unset"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Select primary group if unset"
200-select-primary-group-if-unset
into
master
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
Tom Teichler
requested to merge
200-select-primary-group-if-unset
into
master
5 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
Closes
#200 (closed)
Edited
5 years ago
by
Tom Teichler
0
0
Merge request reports
Viewing commit
78cbcb78
Prev
Next
Show latest version
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
78cbcb78
Add settings for primary group pattern
· 78cbcb78
Tom Teichler
authored
5 years ago
aleksis/core/settings.py
+
2
−
0
Options
@@ -380,6 +380,7 @@ CONSTANCE_CONFIG = {
"
IMPRINT_URL
"
:
(
""
,
_
(
"
Link to imprint
"
),
"
url_field
"
),
"
ADRESSING_NAME_FORMAT
"
:
(
"
german
"
,
_
(
"
Name format of adresses
"
),
"
adressing-select
"
),
"
NOTIFICATION_CHANNELS
"
:
([
"
email
"
],
_
(
"
Channels to allow for notifications
"
),
"
notifications-select
"
),
"
PRIMARY_GROUP_PATTERN
"
:
(
""
,
_
(
"
Regular expression to match primary group, e.g.
'
^Class .*
'"
),
str
),
}
CONSTANCE_CONFIG_FIELDSETS
=
{
"
General settings
"
:
(
"
SITE_TITLE
"
,
"
SITE_DESCRIPTION
"
),
@@ -387,6 +388,7 @@ CONSTANCE_CONFIG_FIELDSETS = {
"
Mail settings
"
:
(
"
MAIL_OUT_NAME
"
,
"
MAIL_OUT
"
),
"
Notification settings
"
:
(
"
NOTIFICATION_CHANNELS
"
,
"
ADRESSING_NAME_FORMAT
"
),
"
Footer settings
"
:
(
"
PRIVACY_URL
"
,
"
IMPRINT_URL
"
),
"
Account settings
"
:
(
"
PRIMARY_GROUP_PATTERN
"
,),
}
merge_app_settings
(
"
CONSTANCE_ADDITIONAL_FIELDS
"
,
CONSTANCE_ADDITIONAL_FIELDS
,
False
)
Loading