mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🔧 Improve list_display of all ModelAdmin s
This commit is contained in:
parent
d748ca272b
commit
0a215babeb
1 changed files with 25 additions and 3 deletions
|
@ -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",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue