mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This commit adds a new group level setting can_manage_group for configuring who can manage a group. This commit only adds the field in database and make changes to automatically create single user groups corresponsing to acting user which will be the default value for this setting. Fixes part of #25928.
24 lines
612 B
Python
24 lines
612 B
Python
# Generated by Django 4.2.2 on 2023-07-15 16:28
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0569_remove_userprofile_tutorial_status"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="namedusergroup",
|
|
name="can_manage_group",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.RESTRICT,
|
|
related_name="+",
|
|
to="zerver.usergroup",
|
|
),
|
|
),
|
|
]
|