Django-NotesApp/project/notes/migrations/0006_note_owner.py

22 lines
607 B
Python
Raw Permalink Normal View History

2023-03-01 22:58:22 +08:00
# Generated by Django 4.1.7 on 2023-03-01 13:47
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),
('notes', '0005_delete_historicalnote'),
]
operations = [
migrations.AddField(
model_name='note',
name='owner',
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]