diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/admin.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ctrack/organisations/admin.py b/ctrack/organisations/admin.py index 1f36699..ecf67dd 100644 --- a/ctrack/organisations/admin.py +++ b/ctrack/organisations/admin.py @@ -3,19 +3,18 @@ from django.contrib import admin from .models import Organisation, Address, AddressType -class OrganisationAdmin(admin.ModelAdmin): +class AddressTypeAdmin(admin.ModelAdmin): pass -class AddressTypeAdmin(admin.ModelAdmin): - pass +class AddressInLine(admin.StackedInline): + model = Address -class AddressAdmin(admin.ModelAdmin): - pass +class OrganisationAdmin(admin.ModelAdmin): + inlines = [AddressInLine,] # Register your models here. admin.site.register(Organisation, OrganisationAdmin) admin.site.register(AddressType, AddressTypeAdmin) -admin.site.register(Address, AddressAdmin) |