Files
zulip/zerver/migrations/0583_namedusergroup_creator_namedusergroup_date_created.py
sujal shah 614caf111e user_groups: Add creator and date_created field in user groups.
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.
2024-09-13 18:44:58 -07:00

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),
),
]