aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/admin.py
diff options
context:
space:
mode:
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")