Add search and filter fields
This commit is contained in:
parent
afdd0c526e
commit
a154341fae
|
|
@ -12,8 +12,11 @@ class LearningMentorAdmin(admin.ModelAdmin):
|
|||
|
||||
list_display = ["mentor", "course", "participant_count"]
|
||||
|
||||
search_fields = ["mentor__email"]
|
||||
|
||||
|
||||
@admin.register(MentorInvitation)
|
||||
class MentorInvitationAdmin(admin.ModelAdmin):
|
||||
list_display = ["id", "email", "participant", "created"]
|
||||
readonly_fields = ["id", "created"]
|
||||
search_fields = ["email"]
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ class CheckoutInformationAdmin(admin.ModelAdmin):
|
|||
"state",
|
||||
"invoice_transmitted_at",
|
||||
)
|
||||
search_fields = ["user__email"]
|
||||
list_filter = ("state", "product_name")
|
||||
actions = [generate_invoice, sync_transaction_state]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue