Fix Location2025 checkin_radius issue
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user