-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move channels for groups to channel model
update details and list
- Loading branch information
1 parent
9f8b9f2
commit dee3c68
Showing
9 changed files
with
173 additions
and
11 deletions.
There are no files selected for viewing
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
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
32 changes: 32 additions & 0 deletions
32
slack/migrations/0005_channel_allowed_groups_channel_required_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,32 @@ | ||
# Generated by Django 4.2.13 on 2025-01-03 06:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("slack", "0004_remove_channel_channel_id_alter_channel_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="channel", | ||
name="allowed_groups", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="allowed_channels", | ||
to="slack.channel", | ||
verbose_name="Allowed Groups", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="channel", | ||
name="required_groups", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="required_channels", | ||
to="slack.channel", | ||
verbose_name="Required Groups", | ||
), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
slack/migrations/0006_alter_channel_allowed_groups_and_more.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,33 @@ | ||
# Generated by Django 4.2.13 on 2025-01-03 06:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auth", "0014_remove_group_allowed_channels_and_more"), | ||
("slack", "0005_channel_allowed_groups_channel_required_groups"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="channel", | ||
name="allowed_groups", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="allowed_channels", | ||
to="auth.group", | ||
verbose_name="Allowed Groups", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="channel", | ||
name="required_groups", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="required_channels", | ||
to="auth.group", | ||
verbose_name="Required 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
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