|
@ -60,7 +60,7 @@ class AnexoAdmin(admin.ModelAdmin): |
|
|
"data_pub", |
|
|
"data_pub", |
|
|
] |
|
|
] |
|
|
list_display = ("arquivo", "descricao", "data_pub", "convenio") |
|
|
list_display = ("arquivo", "descricao", "data_pub", "convenio") |
|
|
raw_id_fields = ("convenio",) |
|
|
autocomplete_fields = ("convenio",) |
|
|
search_fields = ( |
|
|
search_fields = ( |
|
|
"descricao", |
|
|
"descricao", |
|
|
"convenio__id", |
|
|
"convenio__id", |
|
@ -169,7 +169,7 @@ class ConvenioAdmin(CartExportReportMixin, admin.ModelAdmin): |
|
|
"casa_legislativa__municipio__uf", |
|
|
"casa_legislativa__municipio__uf", |
|
|
) |
|
|
) |
|
|
ordering = ("casa_legislativa", "-data_retorno_assinatura") |
|
|
ordering = ("casa_legislativa", "-data_retorno_assinatura") |
|
|
raw_id_fields = ("casa_legislativa",) |
|
|
autocomplete_fields = ("casa_legislativa",) |
|
|
get_queryset = queryset_ascii |
|
|
get_queryset = queryset_ascii |
|
|
search_fields = ( |
|
|
search_fields = ( |
|
|
"id", |
|
|
"id", |
|
@ -319,7 +319,7 @@ class EquipamentoPrevistoAdmin(admin.ModelAdmin): |
|
|
list_display = ("convenio", "equipamento", "quantidade") |
|
|
list_display = ("convenio", "equipamento", "quantidade") |
|
|
list_display_links = ("convenio", "equipamento") |
|
|
list_display_links = ("convenio", "equipamento") |
|
|
ordering = ("convenio", "equipamento") |
|
|
ordering = ("convenio", "equipamento") |
|
|
raw_id_fields = ("convenio", "equipamento") |
|
|
autocomplete_fields = ("convenio", "equipamento") |
|
|
search_fields = ( |
|
|
search_fields = ( |
|
|
"convenio__id", |
|
|
"convenio__id", |
|
|
"equipamento__fabricante__nome", |
|
|
"equipamento__fabricante__nome", |
|
|