From 45d478cbb478fa4ce6173fa1ae220b2ced5c6487 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Wed, 3 Aug 2022 16:37:19 -0400 Subject: [PATCH] Migrate Note model --- program/migrations/0031_auto_20220803_2226.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 program/migrations/0031_auto_20220803_2226.py diff --git a/program/migrations/0031_auto_20220803_2226.py b/program/migrations/0031_auto_20220803_2226.py new file mode 100644 index 00000000..e4072b02 --- /dev/null +++ b/program/migrations/0031_auto_20220803_2226.py @@ -0,0 +1,31 @@ +# Generated by Django 3.2.14 on 2022-08-03 20:26 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ("program", "0030_auto_20220803_2217"), + ] + + operations = [ + migrations.RemoveField( + model_name="note", + name="user", + ), + migrations.AddField( + model_name="note", + name="owner", + field=models.ForeignKey( + default=1, + editable=False, + on_delete=django.db.models.deletion.CASCADE, + related_name="notes", + to=settings.AUTH_USER_MODEL, + ), + ), + ] -- GitLab