Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix for processing data
Mira Szewczykfbf34a9a48ca
diff --git a/saleor/cart/forms.py b/saleor/cart/forms.pyindex 2ada2fbff6..b038ac93b0 100644--- a/saleor/cart/forms.py+++ b/saleor/cart/forms.py@@ -119,5 +119,5 @@ class CountryForm(forms.Form):country = forms.ChoiceField(choices=COUNTRY_CODE_CHOICES)def get_shipment_options(self):- code = self.country+ code = self.cleaned_data['country']return ShippingMethodCountry.objects.filter(country_code=code)diff --git a/saleor/cart/views.py b/saleor/cart/views.pyindex 8cc6c6b232..f2f432a461 100644--- a/saleor/cart/views.py+++ b/saleor/cart/views.py@@ -42,7 +42,7 @@ def index(request, cart):if country_form.is_valid():shipments = country_form.get_shipment_options()- return JsonResponse({'options': shipments})+ return JsonResponse({'options': list(shipments)})return TemplateResponse(request, 'cart/index.html',