Skip to content

Commit

Permalink
Register CollaborativeAnalysisWorkspace in the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Jan 25, 2024
1 parent ee4f730 commit 64ed238
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion primed/collaborative_analysis/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
from django.contrib import admin
from simple_history.admin import SimpleHistoryAdmin

# Register your models here.
from . import models


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

list_display = (
"id",
"workspace",
"custodian",
)
list_filter = ("proposal_id",)
sortable_by = (
"id",
"workspace",
"custodian",
)

0 comments on commit 64ed238

Please sign in to comment.