summaryrefslogtreecommitdiffstats
path: root/instruments/admin.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/admin.py
parent41cf37ac30e2efac6427a4f126954a442579bc41 (diff)
Adds basic SOP model and adds it to admin
Diffstat (limited to 'instruments/admin.py')
-rw-r--r--instruments/admin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/instruments/admin.py b/instruments/admin.py
index 2c55b2c..b110540 100644
--- a/instruments/admin.py
+++ b/instruments/admin.py
@@ -1,11 +1,17 @@
from django.contrib import admin
-from .models import Instrument, SubInstrument
+from .models import SOP, Instrument, SubInstrument
class SubInstrumentAdmin(admin.ModelAdmin):
list_display = ("__str__", "itype", "parent")
+class SOPInstrumentAdmin(admin.ModelAdmin):
+ list_display = ("__str__", "designation", "sp_link", "draft_status", "author_lead")
+ ordering = ("name",)
+
+
admin.site.register(Instrument)
admin.site.register(SubInstrument, SubInstrumentAdmin)
+admin.site.register(SOP, SOPInstrumentAdmin)