diff --git a/rog/admin.py b/rog/admin.py index a28bfdf..9071530 100755 --- a/rog/admin.py +++ b/rog/admin.py @@ -1068,7 +1068,7 @@ class Location2025Admin(LeafletGeoAdmin): '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') @@ -1080,7 +1080,7 @@ class Location2025Admin(LeafletGeoAdmin): 'fields': ('shop_closed', 'shop_shutdown', 'opening_hours') }), ('詳細情報', { - 'fields': ('phone', 'website', 'description', 'remark') + 'fields': ('phone', 'website', 'description', 'remark', 'facility') }), ('メディア・タグ情報', { 'fields': ('photos', 'videos', 'tags', 'evaluation_value'), diff --git a/rog/models.py b/rog/models.py index 0618fea..b0ac7b5 100755 --- a/rog/models.py +++ b/rog/models.py @@ -1274,6 +1274,14 @@ class Location2025(models.Model): 'remark': row.get('remark', ''), '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_upload_date': timezone.now(),