# arquivo admin.py do app
from django.contrib import admin
from .models import Perfil
# Register your models here.
class PerfilModelAdmin(admin.ModelAdmin):
list_display = ["nome", "numero_hosts", "zbx_user"] # Colunas do Admin
list_display_links = ["zbx_user"] # Link nas Colunas
search_fields = ["zbx_user", "nome"] # Colunas para busca
class Meta:
meta = Perfil
admin.site.register(Perfil, PerfilModelAdmin)