Энергия НК (Сменил имя основного участка)
This commit is contained in:
parent
89cf91f9e7
commit
117c8a6666
@ -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()
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user