From 898a512dd85ea572621fcec7357140da126670a9 Mon Sep 17 00:00:00 2001 From: Lachlan Glen <54282009+lachlanglen@users.noreply.github.com> Date: Mon, 20 May 2024 14:59:24 -0400 Subject: [PATCH] add admin for PotApplicationReview --- pots/admin.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pots/admin.py b/pots/admin.py index c934392..09e40b3 100644 --- a/pots/admin.py +++ b/pots/admin.py @@ -6,6 +6,7 @@ from .models import ( Pot, PotApplication, + PotApplicationReview, PotFactory, PotPayout, PotPayoutChallenge, @@ -80,6 +81,21 @@ class PotApplicationAdmin(admin.ModelAdmin): list_filter = ("status", "submitted_at") +@admin.register(PotApplicationReview) +class PotApplicationReviewAdmin(admin.ModelAdmin): + list_display = ( + "id", + "application", + "reviewer", + "notes", + "status", + "reviewed_at", + "tx_hash", + ) + search_fields = ("application__id", "reviewer__id") + list_filter = ("status", "reviewed_at") + + @admin.register(PotPayout) class PotPayoutAdmin(admin.ModelAdmin): list_display = ("id", "pot", "recipient", "amount", "paid_at")