From 3f0f14a03eb30e290f2da9597f6f5aa6b2521fdd Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Thu, 27 Feb 2025 08:54:37 +0700 Subject: [PATCH] fix --- apps/general/views/settingsmodule.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/general/views/settingsmodule.py b/apps/general/views/settingsmodule.py index a801d33..7489f8b 100644 --- a/apps/general/views/settingsmodule.py +++ b/apps/general/views/settingsmodule.py @@ -45,7 +45,4 @@ def settings_install(): if geoproc_many_sectors == "0": Sector.objects.get_or_create(name="Основной участок") - if geoproc_many_sectors == "1": - main_sector, _ = Sector.objects.get_or_create(name="Основной участок") - main_sector.visible = False - main_sector.save() +