destination_lat and _lon don't get cleaned
This commit is contained in:
parent
2963bf9650
commit
6ba35b5722
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ class InquiryCreateView(InConstructionMixin, CreateView):
|
||||||
return reverse("auction:process_inquiry", args=(self.object.id))
|
return reverse("auction:process_inquiry", args=(self.object.id))
|
||||||
|
|
||||||
def clean_destination_coords(self):
|
def clean_destination_coords(self):
|
||||||
lat = self.cleaned_data.get("destination_lat", "")
|
lat = self.data.get("destination_lat", "")
|
||||||
lon = self.cleaned_data.get("destination_lon", "")
|
lon = self.data.get("destination_lon", "")
|
||||||
|
|
||||||
if (not lat) or (not lon):
|
if (not lat) or (not lon):
|
||||||
lat, lon = name_to_coords(self.cleaned_data.get("destination_name"))
|
lat, lon = name_to_coords(self.cleaned_data.get("destination_name"))
|
||||||
|
|
Loading…
Reference in a new issue