feat: complete realtime challenge matchmaking
This commit is contained in:
@@ -62,11 +62,32 @@ class QuestionVersionAdmin(admin.ModelAdmin):
|
||||
|
||||
|
||||
admin.site.register(ContestAnswer)
|
||||
admin.site.register(RealtimeMatch)
|
||||
admin.site.register(RatingHistory)
|
||||
admin.site.register(LeaderboardSnapshot)
|
||||
|
||||
|
||||
@admin.register(RealtimeMatch)
|
||||
class RealtimeMatchAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"contest",
|
||||
"match_type",
|
||||
"challenge_code",
|
||||
"player_one",
|
||||
"player_two",
|
||||
"status",
|
||||
"created_at",
|
||||
)
|
||||
list_filter = ("match_type", "status", "contest__track")
|
||||
search_fields = (
|
||||
"challenge_code",
|
||||
"player_one__username",
|
||||
"player_two__username",
|
||||
)
|
||||
readonly_fields = ("created_at", "started_at", "completed_at")
|
||||
ordering = ("-created_at",)
|
||||
|
||||
|
||||
@admin.register(MathGameAttempt)
|
||||
class MathGameAttemptAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
|
||||
Reference in New Issue
Block a user