Skip to content

Commit

Permalink
add admin for PotApplicationReview
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed May 20, 2024
1 parent eeeb00e commit 898a512
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pots/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .models import (
Pot,
PotApplication,
PotApplicationReview,
PotFactory,
PotPayout,
PotPayoutChallenge,
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 898a512

Please sign in to comment.