summaryrefslogtreecommitdiffstats
path: root/instruments/migrations/0005_sop.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-14 16:43:17 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-14 16:43:17 +0100
commitcb9f0fad4140c9cfff63f056f88da1b8bdb2f9cc (patch)
tree8d88ffe146efffe47e22d1a79ef5757621c9aa38 /instruments/migrations/0005_sop.py
parent41cf37ac30e2efac6427a4f126954a442579bc41 (diff)
Adds basic SOP model and adds it to admin
Diffstat (limited to 'instruments/migrations/0005_sop.py')
-rw-r--r--instruments/migrations/0005_sop.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/instruments/migrations/0005_sop.py b/instruments/migrations/0005_sop.py
new file mode 100644
index 0000000..0a6cc73
--- /dev/null
+++ b/instruments/migrations/0005_sop.py
@@ -0,0 +1,39 @@
+# Generated by Django 5.0.4 on 2024-10-14 15:10
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("instruments", "0004_alter_subinstrument_relative"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="SOP",
+ fields=[
+ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
+ ("date_created", models.DateTimeField(auto_now_add=True)),
+ ("last_modified", models.DateTimeField(auto_now=True)),
+ ("name", models.CharField(max_length=512)),
+ ("designation", models.CharField(max_length=5)),
+ ("sp_link", models.URLField(blank=True, max_length=1000, null=True)),
+ (
+ "draft_status",
+ models.CharField(
+ choices=[
+ ("Draft", "Draft"),
+ ("Final", "Final"),
+ ("Published", "Published"),
+ ("To be reviewed", "To be reviewed"),
+ ],
+ max_length=20,
+ ),
+ ),
+ ],
+ options={
+ "abstract": False,
+ },
+ ),
+ ]