Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Bastin committed Oct 10, 2023
1 parent 3138728 commit 236cada
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prizetap/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ class RaffleٍEntryAdmin(admin.ModelAdmin):
def get_wallet(self, obj):
return obj.user_profile.wallets.get(wallet_type=NetworkTypes.EVM).address

class LineaRaffleEntriesAdmin(admin.ModelAdmin):
list_display = [
"pk",
"wallet_address",
"is_winner"
]



admin.site.register(Raffle, RaffleAdmin)
admin.site.register(RaffleEntry, RaffleٍEntryAdmin)
admin.site.register(Constraint, UserConstraintBaseAdmin)
admin.site.register(LineaRaffleEntries, LineaRaffleEntriesAdmin)

0 comments on commit 236cada

Please sign in to comment.