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

🔧 Improve list_display of all ModelAdmin s

This commit is contained in:
Steffo 2021-04-08 14:33:54 +02:00
parent d748ca272b
commit 0a215babeb

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