feat(members): make youth leader group name configurable#261
Open
chrisflav wants to merge 4 commits intochrisflav:mainfrom
Open
feat(members): make youth leader group name configurable#261chrisflav wants to merge 4 commits intochrisflav:mainfrom
chrisflav wants to merge 4 commits intochrisflav:mainfrom
Conversation
Add a YOUTH_LEADER_GROUP config variable (defaults to "Jugendleiter") to replace all hardcoded group name references. The group is automatically created during migration, and deletion is forbidden via the admin. Closes chrisflav#231 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
📚 Documentation deployed! Documentation: https://chrisflav.github.io/kompass/feat/issue-231-youth-leader-group/ Docker Images:
Add the |
The data migration that pre-creates the youth leader group changes group PKs relative to other groups created during CSV import. Sort groups by name when exporting to ensure a stable, PK-independent order, and update the test fixture accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sort all multi-group fields alphabetically to match the order_by("name")
used in CSV export.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #231.
YOUTH_LEADER_GROUPconfig variable (defaults to"Jugendleiter") insettings/local.py, configurable viamisc.youth_leader_groupinsettings.toml"Jugendleiter"group name lookups inmembers/admin.py,mailer/management/commands/reply_addrs.py, andmembers/management/commands/get_assoc_addr.py/get_forward_addrs.pywithsettings.YOUTH_LEADER_GROUP0048_create_youth_leader_group) that automatically creates the group on first migrationGroupAdmin.has_delete_permissionanddelete_querysetdeploy/config/settings.tomlas a commented-out exampleTest plan
Jugendleitergroup is created automaticallyyouth_leader_group = 'MyGroup'insettings.toml, create that group, and confirm the admin forms filter by it correctly🤖 Generated with Claude Code