Skip to content

Commit

Permalink
Register all misc workspace models in the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Nov 13, 2023
1 parent 8a4eb4b commit 5f90515
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions primed/miscellaneous_workspaces/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,42 @@ class SimulatedDataWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `SimulatedDataWorkspace` model."""

list_display = ("workspace",)


@admin.register(models.ConsortiumDevelWorkspace)
class ConsortiumDevelWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `ConsortiumDevelWorkspace` model."""

list_display = ("workspace",)


@admin.register(models.ResourceWorkspace)
class ResourceWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `ResourceWorkspace` model."""

list_display = ("workspace",)


@admin.register(models.TemplateWorkspace)
class TemplateWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `TemplateWorkspace` model."""

list_display = ("workspace",)


@admin.register(models.OpenAccessWorkspace)
class OpenAccessWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `OpenAccessWorkspace` model."""

list_display = ("workspace",)


@admin.register(models.DataPrepWorkspace)
class DataPrepWorkspaceAdmin(SimpleHistoryAdmin):
"""Admin class for the `DataPrepWorkspace` model."""

list_display = (
"workspace",
"is_active",
)
list_filter = ("is_active",)

0 comments on commit 5f90515

Please sign in to comment.