#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4


from django.contrib import admin
from .models import App, Backend, Connection, Contact

class ConnectionInline(admin.TabularInline):
    model = Connection
    extra = 1

class ContactAdmin(admin.ModelAdmin):
    inlines = [
        ConnectionInline,
    ]

admin.site.register(App)
admin.site.register(Backend)
admin.site.register(Connection)
admin.site.register(Contact, ContactAdmin)

#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4


from django.contrib import admin
from .models import App, Backend, Connection, Contact

class ConnectionInline(admin.TabularInline):
    model = Connection
    extra = 1

class ContactAdmin(admin.ModelAdmin):
    model = Contact
    list_display = ('name', 'role', 'location')
    inlines = [
        ConnectionInline,
    ]

admin.site.register(App)
admin.site.register(Backend)
admin.site.register(Connection)
admin.site.register(Contact, ContactAdmin)

update contact admin