Fix Location2025 checkin_radius issue

This commit is contained in:
2025-08-31 14:31:31 +09:00
parent 03de478b80
commit aa8b39aa99
2 changed files with 23 additions and 0 deletions

View File

@ -1114,6 +1114,13 @@ class Location2025Admin(LeafletGeoAdmin):
def evaluation_value_display(self, obj):
"""evaluation_valueのカスタム表示"""
# CP番号による特別な表示
if obj.cp_number == -2:
return 'スタート'
elif obj.cp_number == -1:
return 'ゴール'
# evaluation_valueによる通常の表示
evaluation_map = {
'0': '通常CP',
'1': '買物CP',