mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
The default value for this field that we wanted to have was that group itlself. But we are deferring that to later in order to reach the point of switching over to the groups system sooner. Till then, we will use `group_creator` as the default. See https://chat.zulip.org/#narrow/stream/101-design/topic/Group.20add.20members.20dropdown/near/1952904 for more details. For migration plan details, see https://chat.zulip.org/#narrow/stream/101-design/topic/Group.20add.20members.20dropdown/near/1952902 The increase in query count from 7 to 9 in the query count test for creating a user group is because of group_creator being the default for the new field.
24 lines
618 B
Python
24 lines
618 B
Python
# Generated by Django 5.0.9 on 2024-10-07 07:23
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0598_alter_namedusergroup_can_join_group"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="namedusergroup",
|
|
name="can_add_members_group",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.RESTRICT,
|
|
related_name="+",
|
|
to="zerver.usergroup",
|
|
),
|
|
),
|
|
]
|