summaryrefslogtreecommitdiffstats
path: root/instruments/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-14 17:46:36 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-14 17:46:36 +0100
commitbbdc85fbc53a914f9375aae0a9f3730a940ded95 (patch)
treea27c2f2ffc319eb91294d9409aa643e51aadd385 /instruments/views.py
parent95507940f12a0a62e2e207b02cecfca2c3c69418 (diff)
We have a basic SOP list view
- added the new url file - styled similar to EP list for organisation - uses a spanned row in the table for a description or summary of the document - TODO: update the model to use the summary row - TODO: add more metadata
Diffstat (limited to 'instruments/views.py')
-rw-r--r--instruments/views.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/instruments/views.py b/instruments/views.py
index fd0e044..0329e00 100644
--- a/instruments/views.py
+++ b/instruments/views.py
@@ -1,3 +1,10 @@
# from django.shortcuts import render
-# Create your views here.
+from django.views.generic.list import ListView
+
+from .models import SOP
+
+
+class SOPListView(ListView):
+ model = SOP
+ paginate_by = 100