-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix default_groups being linked to the wrong model field
and set the default as an empty list
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
mozilla_django_oidc_db/migrations/0006_alter_openidconnectconfig_default_groups.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.17 on 2025-01-10 15:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("auth", "0012_alter_user_first_name_max_length"), | ||
("mozilla_django_oidc_db", "0005_alter_openidconnectconfig_claim_mapping"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="openidconnectconfig", | ||
name="default_groups", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
default=list, | ||
help_text="The default groups to which every user logging in with OIDC will be assigned", | ||
to="auth.group", | ||
verbose_name="default groups", | ||
), | ||
), | ||
] |
This file contains 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
This file contains 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