aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-21 18:03:43 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-21 18:04:15 +0000
commit5f06e5559c00db759574467c3884a4645346b224 (patch)
tree8fcd68579d7441823da3e90d913a0694fc65855e /ctrack/organisations/admin.py
parent490fc024506c9ed9f9c0b5a4cfbcdecc95127dbe (diff)
reconfigured Address and Organisation relationship
Diffstat (limited to 'ctrack/organisations/admin.py')
-rw-r--r--ctrack/organisations/admin.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/ctrack/organisations/admin.py b/ctrack/organisations/admin.py
index 8890f15..1f36699 100644
--- a/ctrack/organisations/admin.py
+++ b/ctrack/organisations/admin.py
@@ -1,6 +1,21 @@
from django.contrib import admin
-from .models import Organisation
+from .models import Organisation, Address, AddressType
+
+
+class OrganisationAdmin(admin.ModelAdmin):
+ pass
+
+
+class AddressTypeAdmin(admin.ModelAdmin):
+ pass
+
+
+class AddressAdmin(admin.ModelAdmin):
+ pass
+
# Register your models here.
-admin.site.register(Organisation)
+admin.site.register(Organisation, OrganisationAdmin)
+admin.site.register(AddressType, AddressTypeAdmin)
+admin.site.register(Address, AddressAdmin)