1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

🔧 Improve list_display of all ModelAdmin s

This commit is contained in:
Steffo 2021-04-08 14:33:54 +02:00
parent 2a9825d72f
commit c1f3df86f1
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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",
)