Skip to content

Commit

Permalink
Merge pull request #273 from UW-GAC/feature/admin-classes
Browse files Browse the repository at this point in the history
Register all misc workspace models in the admin
  • Loading branch information
amstilp authored Nov 13, 2023
2 parents 8a4eb4b + 5f90515 commit ad04b45
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 ad04b45

Please sign in to comment.