feat: add collaborative math board and draw guess mode

This commit is contained in:
2026-08-10 00:47:03 +08:00
parent 40e9462842
commit b8916180a9
16 changed files with 890 additions and 36 deletions
+20
View File
@@ -0,0 +1,20 @@
from django.contrib import admin
from .models import BoardSession
@admin.register(BoardSession)
class BoardSessionAdmin(admin.ModelAdmin):
list_display = (
"code",
"mode",
"host",
"guest",
"status",
"guest_score",
"created_at",
)
list_filter = ("mode", "status")
search_fields = ("code", "host__username", "guest__username")
readonly_fields = ("code", "target", "created_at", "completed_at")
ordering = ("-created_at",)