2014-09-26 19:21:09 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from orchestra.admin import SelectPluginAdminMixin
|
|
|
|
from orchestra.apps.accounts.admin import AccountAdminMixin
|
|
|
|
|
|
|
|
from .models import SaaS
|
|
|
|
from .services import SoftwareService
|
|
|
|
|
|
|
|
|
|
|
|
class SaaSAdmin(SelectPluginAdminMixin, AccountAdminMixin, admin.ModelAdmin):
|
2014-09-26 21:24:23 +00:00
|
|
|
list_display = ('description', 'service', 'account_link')
|
2014-09-26 19:21:09 +00:00
|
|
|
list_filter = ('service',)
|
|
|
|
plugin = SoftwareService
|
|
|
|
plugin_field = 'service'
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(SaaS, SaaSAdmin)
|