From 6e4ecc46047e8d78af15ef25acf5b6da8df7b2ea Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 8 Apr 2021 11:32:09 +0200 Subject: [PATCH] Fixed name_to_coords call in ICV --- auction/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auction/views.py b/auction/views.py index 4002553..0dfedd8 100644 --- a/auction/views.py +++ b/auction/views.py @@ -6,6 +6,7 @@ from django.urls import reverse from public.mixins import InConstructionMixin from .models import Inquiry +from .helpers import name_to_coords class InquiryCreateView(InConstructionMixin, CreateView): model = Inquiry @@ -29,6 +30,6 @@ class InquiryCreateView(InConstructionMixin, CreateView): lon = self.cleaned_data.get("destination_lon", "") if (not lat) or (not lon): - lon, lat = get_coords(self.cleaned_data.get("destination_name")) + lat, lon = name_to_coords(self.cleaned_data.get("destination_name")) return Point(lon, lat) \ No newline at end of file