mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This commit introduced 'creator' and 'date_created' fields in user groups, allowing users to view who created the groups and when. Both fields can be null for groups without creator data.
32 lines
915 B
Python
32 lines
915 B
Python
# Generated by Django 5.0.8 on 2024-08-31 08:09
|
|
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0582_remove_realm_delete_own_message_policy"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="namedusergroup",
|
|
name="creator",
|
|
field=models.ForeignKey(
|
|
db_column="creator_id",
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name="+",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="namedusergroup",
|
|
name="date_created",
|
|
field=models.DateTimeField(default=django.utils.timezone.now, null=True),
|
|
),
|
|
]
|