From 6ba35b5722834e53a6cecd0078b6c7bb186da725 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 8 Apr 2021 11:33:38 +0200 Subject: [PATCH] destination_lat and _lon don't get cleaned --- auction/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auction/views.py b/auction/views.py index 4d778b4..c475147 100644 --- a/auction/views.py +++ b/auction/views.py @@ -27,8 +27,8 @@ class InquiryCreateView(InConstructionMixin, CreateView): return reverse("auction:process_inquiry", args=(self.object.id)) def clean_destination_coords(self): - lat = self.cleaned_data.get("destination_lat", "") - lon = self.cleaned_data.get("destination_lon", "") + lat = self.data.get("destination_lat", "") + lon = self.data.get("destination_lon", "") if (not lat) or (not lon): lat, lon = name_to_coords(self.cleaned_data.get("destination_name"))