NDOJ/chat_box/migrations/0008_ignore.py

40 lines
1.1 KiB
Python
Raw Permalink Normal View History

2021-11-21 04:23:03 +00:00
# Generated by Django 2.2.17 on 2021-11-18 10:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2022-05-14 17:57:27 +00:00
("judge", "0116_auto_20211011_0645"),
("chat_box", "0007_auto_20211112_1255"),
2021-11-21 04:23:03 +00:00
]
operations = [
migrations.CreateModel(
2022-05-14 17:57:27 +00:00
name="Ignore",
2021-11-21 04:23:03 +00:00
fields=[
2022-05-14 17:57:27 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("ignored_users", models.ManyToManyField(to="judge.Profile")),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="ignored_chat_users",
to="judge.Profile",
verbose_name="user",
),
),
2021-11-21 04:23:03 +00:00
],
),
]