2021-03-27 11:43:03 +01:00
|
|
|
# Generated by Django 3.1.5 on 2021-02-12 12:10
|
|
|
|
|
|
|
|
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", "0313_finish_is_user_active_migration"),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="MutedUser",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date_muted", models.DateTimeField(default=django.utils.timezone.now)),
|
|
|
|
(
|
2021-03-27 12:23:32 +01:00
|
|
|
"muted_user",
|
2021-03-27 11:43:03 +01:00
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="+",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user_profile",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="+",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
2021-03-27 12:23:32 +01:00
|
|
|
"unique_together": {("user_profile", "muted_user")},
|
2021-03-27 11:43:03 +01:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|