diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-09-03 11:49:03 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-09-03 11:49:03 +0100 |
commit | 58e0f875553e933a89610f3d66e2c266a6847584 (patch) | |
tree | 3f089e13816389f2d82bd41fa6cb1ee133f83266 /ctrack/organisations/admin.py | |
parent | edd91cb77191b386af95dfaca0b2706c7ee143b9 (diff) |
added EssentialService as an inline on the Org admin page
Diffstat (limited to 'ctrack/organisations/admin.py')
-rw-r--r-- | ctrack/organisations/admin.py | 10 |
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") |