Энергия НК (fix)
This commit is contained in:
parent
f18aa70b54
commit
2f63993625
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user