Source code for networkapi.requisicaovips.admin.server_pool
# -*- coding: utf-8 -*-
from django.contrib import admin
[docs]class ServerPoolAdmin(admin.ModelAdmin):
search_fields = ['identifier', 'id']
list_display = ['id', 'identifier',
'get_healthcheck', 'default_port', 'pool_created']
list_filter = ('pool_created',)
get_healthcheck.short_description = 'Healthcheck'
get_healthcheck.admin_order_field = 'healthcheck__healthcheck_type'