Fix Location2025 missing fields
This commit is contained in:
@ -1068,7 +1068,7 @@ class Location2025Admin(LeafletGeoAdmin):
|
|||||||
'fields': ('cp_number', 'event', 'cp_name', 'sub_loc_id', 'subcategory', 'is_active', 'sort_order')
|
'fields': ('cp_number', 'event', 'cp_name', 'sub_loc_id', 'subcategory', 'is_active', 'sort_order')
|
||||||
}),
|
}),
|
||||||
('位置情報', {
|
('位置情報', {
|
||||||
'fields': ('latitude', 'longitude', 'location', 'address')
|
'fields': ('latitude', 'longitude', 'location', 'address', 'zip_code', 'prefecture', 'area', 'city')
|
||||||
}),
|
}),
|
||||||
('ポイント設定', {
|
('ポイント設定', {
|
||||||
'fields': ('checkin_point', 'buy_point')
|
'fields': ('checkin_point', 'buy_point')
|
||||||
@ -1080,7 +1080,7 @@ class Location2025Admin(LeafletGeoAdmin):
|
|||||||
'fields': ('shop_closed', 'shop_shutdown', 'opening_hours')
|
'fields': ('shop_closed', 'shop_shutdown', 'opening_hours')
|
||||||
}),
|
}),
|
||||||
('詳細情報', {
|
('詳細情報', {
|
||||||
'fields': ('phone', 'website', 'description', 'remark')
|
'fields': ('phone', 'website', 'description', 'remark', 'facility')
|
||||||
}),
|
}),
|
||||||
('メディア・タグ情報', {
|
('メディア・タグ情報', {
|
||||||
'fields': ('photos', 'videos', 'tags', 'evaluation_value'),
|
'fields': ('photos', 'videos', 'tags', 'evaluation_value'),
|
||||||
|
|||||||
@ -1274,6 +1274,14 @@ class Location2025(models.Model):
|
|||||||
'remark': row.get('remark', ''),
|
'remark': row.get('remark', ''),
|
||||||
'hidden_location': hidden_location,
|
'hidden_location': hidden_location,
|
||||||
|
|
||||||
|
# 追加フィールド
|
||||||
|
'area': row.get('area', ''),
|
||||||
|
'zip_code': row.get('zip', ''),
|
||||||
|
'prefecture': row.get('prefecture', ''),
|
||||||
|
'city': row.get('city', ''),
|
||||||
|
'website': row.get('webcontent', ''),
|
||||||
|
'facility': row.get('facility', ''),
|
||||||
|
|
||||||
# 管理フィールド
|
# 管理フィールド
|
||||||
'csv_source_file': getattr(csv_file, 'name', 'uploaded_file.csv'),
|
'csv_source_file': getattr(csv_file, 'name', 'uploaded_file.csv'),
|
||||||
'csv_upload_date': timezone.now(),
|
'csv_upload_date': timezone.now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user