feat: add client release force update flag

This commit is contained in:
QiuSW
2026-07-08 15:38:59 +08:00
parent 30d9df34eb
commit 6646c64a76
14 changed files with 130 additions and 29 deletions
+3 -1
View File
@@ -9,11 +9,12 @@ class DownloadReleaseAdmin(admin.ModelAdmin):
"platform",
"version",
"is_current",
"force_update",
"download_source",
"sha256_short",
"updated_at",
)
list_filter = ("platform", "is_current")
list_filter = ("platform", "is_current", "force_update")
search_fields = ("version", "sha256", "external_url", "file")
readonly_fields = ("created_at", "updated_at")
fieldsets = (
@@ -24,6 +25,7 @@ class DownloadReleaseAdmin(admin.ModelAdmin):
"platform",
"version",
"is_current",
"force_update",
"release_notes",
)
},