aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-09-03 11:49:03 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-09-03 11:49:03 +0100
commit58e0f875553e933a89610f3d66e2c266a6847584 (patch)
tree3f089e13816389f2d82bd41fa6cb1ee133f83266 /ctrack/organisations/admin.py
parentedd91cb77191b386af95dfaca0b2706c7ee143b9 (diff)
added EssentialService as an inline on the Org admin page
Diffstat (limited to 'ctrack/organisations/admin.py')
-rw-r--r--ctrack/organisations/admin.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ctrack/organisations/admin.py b/ctrack/organisations/admin.py
index d3e6284..02b02ef 100644
--- a/ctrack/organisations/admin.py
+++ b/ctrack/organisations/admin.py
@@ -1,6 +1,6 @@
from django.contrib import admin
-from ctrack.caf.models import CAF
+from ctrack.caf.models import CAF, EssentialService
from .models import (
Address,
@@ -47,8 +47,14 @@ class AddressInLine(admin.StackedInline):
extra = 1
+class EssentialServiceInline(admin.StackedInline):
+ model = EssentialService
+ max_num = 3
+ extra = 1
+
+
class OrganisationAdmin(admin.ModelAdmin):
- inlines = [AddressInLine]
+ inlines = [AddressInLine, EssentialServiceInline]
list_display = ("name", "submode", "date_updated")