new
All checks were successful
Deploy to Server / deploy (push) Successful in 18s

This commit is contained in:
jeremygan2021
2026-03-20 14:23:18 +08:00
parent 07006d46d9
commit b39e500307
3 changed files with 26 additions and 43 deletions

View File

@@ -54,7 +54,7 @@ class CompetitionAdmin(ModelAdmin):
'fields': ('start_time', 'end_time', 'status', 'project_visibility', 'allow_contestant_grading', 'is_active')
}),
('评分配置', {
'fields': ('score_calculation_type', 'custom_score_formula', 'active_formula'),
'fields': ('score_calculation_type', 'active_formula'),
'description': '配置得分计算方式:默认加权平均或使用评分公式'
}),
)
@@ -183,7 +183,7 @@ class ScoreFormulaAdmin(ModelAdmin):
}),
('公式配置', {
'fields': ('formula',),
'description': '使用维度名称作为变量,例如: 创新性 * 0.3 + 实用性 * 0.5 + 演示效果 * 0.2'
'description': '使用 dimension_X 作为变量X为维度ID例如: (dimension_1 + dimension_2) / 2'
}),
('公式设置', {
'fields': ('is_active', 'is_default')