Plankton_Detector/PlanktonDetector/DetectionApp/migrations/0003_detectimage_owner.py

26 lines
700 B
Python
Raw Normal View History

2023-12-13 02:11:29 +01:00
# Generated by Django 4.2.7 on 2023-12-12 16:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("DetectionApp", "0002_alter_detectimage_image"),
]
operations = [
migrations.AddField(
model_name="detectimage",
name="owner",
field=models.ForeignKey(
default=1,
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
preserve_default=False,
),
]