Skip to content

Commit

Permalink
change wallet admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad committed Sep 29, 2023
1 parent 3f05ae3 commit 6cdbfad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions authentication/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@

class ProfileAdmin(admin.ModelAdmin):
list_display = ["pk", "initial_context_id", "age"]
search_fields = ["initial_context_id"]
search_fields = ["initial_context_id", "user__token", "user__pk"]


class WalletAdmin(admin.ModelAdmin):
list_display = ["pk", "wallet_type", "user_profile"]
search_fields = ["profile__initial_context_id", "wallet_type"]
search_fields = [
"user_profile__initial_context_id",
"wallet_type",
"user_profile__pk",
"user_profile__user__token",
]


admin.site.register(Wallet, WalletAdmin)
Expand Down

0 comments on commit 6cdbfad

Please sign in to comment.