From 3ad80639193a4fba6a00e95e6840368d62aa38a7 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sat, 17 Apr 2021 08:36:26 +0200 Subject: [PATCH] Remove unused fields from inquiry creation --- auction/views.py | 7 +------ templates/frontend/index.html | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/auction/views.py b/auction/views.py index c78f33a..d8d16ab 100644 --- a/auction/views.py +++ b/auction/views.py @@ -33,12 +33,7 @@ class InquiryCreateView(CreateView): return reverse("auction:process_inquiry", args=(self.object.uuid,)) def clean_destination_coords(self): - lat = self.request.POST.get("destination_lat", "") - lon = self.request.POST.get("destination_lon", "") - - if (not lat) or (not lon): - lat, lon = name_to_coords(self.request.POST.get("destination_name")) - + lat, lon = name_to_coords(self.request.POST.get("destination_name")) return Point(lon, lat) class InquiryProcessView(InConstructionMixin, UpdateView): diff --git a/templates/frontend/index.html b/templates/frontend/index.html index 7fcbc52..aa4a31f 100644 --- a/templates/frontend/index.html +++ b/templates/frontend/index.html @@ -60,8 +60,6 @@
- -