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:
parent
2a9825d72f
commit
c1f3df86f1
1 changed files with 25 additions and 3 deletions
|
@ -10,14 +10,36 @@ class CoreAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
@admin.register(models.Project)
|
@admin.register(models.Project)
|
||||||
class ProjectAdmin(CoreAdmin):
|
class ProjectAdmin(CoreAdmin):
|
||||||
pass
|
"""
|
||||||
|
:class:`.CoreAdmin` class for :class:`.models.Project` .
|
||||||
|
"""
|
||||||
|
|
||||||
|
list_display = (
|
||||||
|
"name",
|
||||||
|
"description",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(models.DataSource)
|
@admin.register(models.DataSource)
|
||||||
class DataSourceAdmin(CoreAdmin):
|
class DataSourceAdmin(CoreAdmin):
|
||||||
pass
|
"""
|
||||||
|
:class:`.CoreAdmin` class for :class:`.models.DataSource` .
|
||||||
|
"""
|
||||||
|
|
||||||
|
list_display = (
|
||||||
|
"pandasdmx_id",
|
||||||
|
"builtin",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(models.DataFlow)
|
@admin.register(models.DataFlow)
|
||||||
class DataFlowAdmin(CoreAdmin):
|
class DataFlowAdmin(CoreAdmin):
|
||||||
pass
|
"""
|
||||||
|
:class:`.CoreAdmin` class for :class:`.models.DataFlow` .
|
||||||
|
"""
|
||||||
|
|
||||||
|
list_display = (
|
||||||
|
"sdmx_id",
|
||||||
|
"datasource_id",
|
||||||
|
"description",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue