django-orchestra/orchestra/apps/saas/admin.py
2014-11-12 16:33:40 +00:00

18 lines
492 B
Python

from django.contrib import admin
from orchestra.apps.accounts.admin import AccountAdminMixin
from orchestra.apps.plugins.admin import SelectPluginAdminMixin
from .models import SaaS
from .services import SoftwareService
class SaaSAdmin(SelectPluginAdminMixin, AccountAdminMixin, admin.ModelAdmin):
list_display = ('description', 'service', 'account_link')
list_filter = ('service',)
plugin = SoftwareService
plugin_field = 'service'
admin.site.register(SaaS, SaaSAdmin)