from django.contrib import admin from eventos.models import * class EventoAdmin(admin.ModelAdmin): """docstring for EventoAdmin""" list_display = [ 'nombre', 'all_day', 'inicio', 'fin', 'sede' ] search_fields = [ 'nombre', 'inicio', 'fin', 'sede__nombre' ] list_filter = [ 'sede', ] admin.site.register(Evento, EventoAdmin) class TelefonoInline(admin.StackedInline): """docstring for TelefonoInline""" model = Telefono extra = 1 class SolicitanteAdmin(admin.ModelAdmin): """docstring for SolicitanteAdmin""" search_fields = [ 'nombre', ] inlines = (TelefonoInline,) admin.site.register(Solicitante, SolicitanteAdmin)