diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-14 16:43:17 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-14 16:43:17 +0100 |
commit | cb9f0fad4140c9cfff63f056f88da1b8bdb2f9cc (patch) | |
tree | 8d88ffe146efffe47e22d1a79ef5757621c9aa38 /instruments/migrations/0006_sop_author_lead.py | |
parent | 41cf37ac30e2efac6427a4f126954a442579bc41 (diff) |
Adds basic SOP model and adds it to admin
Diffstat (limited to 'instruments/migrations/0006_sop_author_lead.py')
-rw-r--r-- | instruments/migrations/0006_sop_author_lead.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/instruments/migrations/0006_sop_author_lead.py b/instruments/migrations/0006_sop_author_lead.py new file mode 100644 index 0000000..2f2528b --- /dev/null +++ b/instruments/migrations/0006_sop_author_lead.py @@ -0,0 +1,24 @@ +# Generated by Django 5.0.4 on 2024-10-14 15:29 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("instruments", "0005_sop"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.AddField( + model_name="sop", + name="author_lead", + field=models.ForeignKey( + default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL + ), + preserve_default=False, + ), + ] |