From 0a215babebd4b84634b23e4bc24c1b00a0453c0e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 8 Apr 2021 14:33:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Improve=20list=5Fdisplay=20of=20?= =?UTF-8?q?all=20ModelAdmin=20s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sophon/core/admin.py | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/sophon/core/admin.py b/sophon/core/admin.py index a7843f4..ca4d77e 100644 --- a/sophon/core/admin.py +++ b/sophon/core/admin.py @@ -10,14 +10,36 @@ class CoreAdmin(admin.ModelAdmin): @admin.register(models.Project) class ProjectAdmin(CoreAdmin): - pass + """ + :class:`.CoreAdmin` class for :class:`.models.Project` . + """ + + list_display = ( + "name", + "description", + ) @admin.register(models.DataSource) class DataSourceAdmin(CoreAdmin): - pass + """ + :class:`.CoreAdmin` class for :class:`.models.DataSource` . + """ + + list_display = ( + "pandasdmx_id", + "builtin", + ) @admin.register(models.DataFlow) class DataFlowAdmin(CoreAdmin): - pass + """ + :class:`.CoreAdmin` class for :class:`.models.DataFlow` . + """ + + list_display = ( + "sdmx_id", + "datasource_id", + "description", + )