aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-28 16:12:13 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-28 16:12:13 +0100
commitacf875c2bca1727306cb70aaa37e6f4595209786 (patch)
tree67390297bcd02b2481f5673629227dfea0884215 /ctrack/organisations/admin.py
parent4aaa68109434e04d1103710d675efd075b2f744a (diff)
parent520a9deb13f93c689443c0339b1c96a67f0c15a1 (diff)
Merge branch 'stakeholder-profile'
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/admin.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/ctrack/organisations/admin.py b/ctrack/organisations/admin.py
index dbd7239..f85ddad 100644
--- a/ctrack/organisations/admin.py
+++ b/ctrack/organisations/admin.py
@@ -1,6 +1,15 @@
from django.contrib import admin
-from .models import Organisation, Address, AddressType, Person, Role, Mode, Submode
+from .models import (
+ Address,
+ AddressType,
+ Mode,
+ Organisation,
+ Person,
+ Role,
+ Stakeholder,
+ Submode,
+)
# So we can get the organisation name - a reverse lookup
@@ -16,6 +25,10 @@ class AddressTypeAdmin(admin.ModelAdmin):
pass
+class StakeholderAdmin(admin.ModelAdmin):
+ model = Stakeholder
+
+
class AddressInLine(admin.StackedInline):
model = Address
max_num = 3
@@ -24,7 +37,7 @@ class AddressInLine(admin.StackedInline):
class OrganisationAdmin(admin.ModelAdmin):
inlines = [AddressInLine]
- list_display = ("name", "submode", "date_updated", "updated_by")
+ list_display = ("name", "submode", "date_updated")
class PersonAdmin(admin.ModelAdmin):
@@ -58,3 +71,4 @@ admin.site.register(Role, RoleAdmin)
admin.site.register(Person, PersonAdmin)
admin.site.register(Mode, ModeAdmin)
admin.site.register(Submode, SubmodeAdmin)
+admin.site.register(Stakeholder, StakeholderAdmin)