From 6e71748c2dac562dde5bfb0ae77ddc4f520998e7 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Tue, 21 Jan 2025 11:25:49 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B8=D0=BF=D0=B0=20=D0=BE=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D1=83=D0=B4=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/gto/views/views_main.py | 3 ++- apps/main/templates/main_index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/gto/views/views_main.py b/apps/gto/views/views_main.py index 2fcaddc..246dfa0 100644 --- a/apps/gto/views/views_main.py +++ b/apps/gto/views/views_main.py @@ -52,7 +52,8 @@ def update_object(request): 'lat': obj.lat, 'lon': obj.lon, 'time': obj.time.astimezone(zoneinfo.ZoneInfo(settings.TIME_ZONE)).strftime('%d.%m.%Y, %H:%M:%S'), - 'statenum': obj.statenum + 'statenum': obj.statenum, + 'model': obj.model, }) return generalmodule.ReturnJson(200, m_list) else: diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index cbe5076..29969f3 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -572,7 +572,8 @@ time: equipment.time, lat: equipment.lat, lon: equipment.lon, - statenum: equipment.statenum + statenum: equipment.statenum, + model: equipment.model }); GTOSource.addFeature(feature); GTOMarkers[equipment.id] = feature;