Skip to content

Commit

Permalink
add session properties to the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 7, 2024
1 parent 48fa1d0 commit 9c21018
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions crowdsourcer/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
Response,
ResponseType,
Section,
SessionProperties,
SessionProperty,
)


Expand Down Expand Up @@ -144,3 +146,24 @@ class SectionAdmin(admin.ModelAdmin):
@admin.register(MarkingSession)
class MarkingSessionAdmin(admin.ModelAdmin):
pass


@admin.register(SessionProperties)
class SessionPropertiesAdmin(admin.ModelAdmin):
list_display = (
"label",
"marking_session",
"stage",
)

list_filter = ["marking_session", "stage"]


@admin.register(SessionProperty)
class SessionPropertyAdmin(admin.ModelAdmin):
list_display = (
"property",
"authority",
)
list_filter = ["property__marking_session", "property__stage"]
search_fields = ["authority__name"]

0 comments on commit 9c21018

Please sign in to comment.