Энергия НК (fix)

This commit is contained in:
zakhy 2025-02-27 08:45:18 +07:00
parent f18aa70b54
commit 2f63993625

View File

@ -24,7 +24,7 @@ def main_index(request, pk=None):
if geoproc_many_sectors and pk is None:
return redirect("geoproc:sector_list")
elif not geoproc_many_sectors and pk is None:
main_sector, _ = Sector.objects.get_or_create(name="Основной")
main_sector, _ = Sector.objects.get_or_create(name="Основной участок")
return redirect("geoproc:geoproc_main_with_arg", pk=main_sector.id)
sector = get_object_or_404(Sector, id=pk)