46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
# Generated by Django 4.2.3 on 2023-07-11 16:06
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
("item", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="item",
|
|
name="user",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="items",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="comment",
|
|
name="item",
|
|
field=models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="comments",
|
|
to="item.item",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="comment",
|
|
name="user",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="comments",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
]
|