Энергия НК (Сменил имя основного участка)

This commit is contained in:
zakhy 2025-02-26 15:58:48 +07:00
parent 89cf91f9e7
commit 117c8a6666
3 changed files with 5 additions and 5 deletions

View File

@ -44,8 +44,8 @@ def settings_install():
geoproc_many_sectors = get_settings("geoproc_many_sectors", "0")
if geoproc_many_sectors == "0":
Sector.objects.get_or_create(name="Основной")
Sector.objects.get_or_create(name="Основной участок")
if geoproc_many_sectors == "1":
main_sector, _ = Sector.objects.get_or_create(name="Основной")
main_sector, _ = Sector.objects.get_or_create(name="Основной участок")
main_sector.visible = False
main_sector.save()

View File

@ -7,7 +7,7 @@ from apps.geoproc.models.model_sector import Sector
def update():
sector, _ = Sector.objects.get_or_create(name="Основной")
sector, _ = Sector.objects.get_or_create(name="Основной участок")
points = Point.objects.filter(sector__isnull=True)
points.update(sector=sector)

View File

@ -44,7 +44,7 @@ urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
settingsmodule.settings_install()
# tasks.load_earthquake()
# tasks.load_navigation()
tasks.load_earthquake()
tasks.load_navigation()
Update().ready()