feat: associate generation calls with devices
This commit is contained in:
@@ -109,6 +109,7 @@ class CallRecordAdmin(ReadOnlyLedgerAdmin):
|
||||
"created_at",
|
||||
"user",
|
||||
"api_key",
|
||||
"client_device",
|
||||
"operation_type",
|
||||
"alias",
|
||||
"model_used",
|
||||
@@ -116,7 +117,7 @@ class CallRecordAdmin(ReadOnlyLedgerAdmin):
|
||||
"status",
|
||||
"upstream_latency_ms",
|
||||
)
|
||||
list_filter = ("operation_type", "status", "created_at")
|
||||
list_filter = ("operation_type", "status", "client_device", "created_at")
|
||||
search_fields = (
|
||||
"user__username",
|
||||
"user__email",
|
||||
@@ -129,7 +130,7 @@ class CallRecordAdmin(ReadOnlyLedgerAdmin):
|
||||
"result_summary",
|
||||
)
|
||||
ordering = ("-created_at", "-id")
|
||||
list_select_related = ("user", "api_key")
|
||||
list_select_related = ("user", "api_key", "client_device")
|
||||
|
||||
|
||||
@admin.register(SignupBonusGrant)
|
||||
|
||||
Reference in New Issue
Block a user