Skip to content

Commit

Permalink
feat(api): add events admin
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer committed Jul 19, 2023
1 parent 608bfe7 commit 4e2c498
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion api/registry/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin
from registry.models import Passport, Score, Stamp
from registry.models import Event, Passport, Score, Stamp


class PassportAdmin(admin.ModelAdmin):
Expand Down Expand Up @@ -49,6 +49,26 @@ def get_queryset(self, request):
return queryset


class EventAdmin(admin.ModelAdmin):
list_display = [
"action",
"created_at",
"address",
"data",
]

list_filter = [
"action",
]

search_fields = [
"created_at",
"address",
"data",
]


admin.site.register(Passport, PassportAdmin)
admin.site.register(Stamp, StampAdmin)
admin.site.register(Score, ScoreAdmin)
admin.site.register(Event, EventAdmin)

0 comments on commit 4e2c498

Please sign in to comment.