Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Replace country_form select with html markup

weronkac6757f3f3634
diff --git a/saleor/core/views.py b/saleor/core/views.py
index cd8fb24c38..e862648f66 100644
--- a/saleor/core/views.py
+++ b/saleor/core/views.py
@@ -1,9 +1,5 @@
from django.template.response import TemplateResponse
-
-from ..core.utils import get_user_shipping_country
from ..product.utils import products_with_availability, products_for_homepage
-from ..cart.forms import CountryForm
-
def home(request):
products = products_for_homepage()[:8]
@@ -14,8 +10,5 @@ def home(request):
{'products': products, 'parent': None})
def styleguide(request):
- default_country = get_user_shipping_country(request)
- country_form = CountryForm(initial={'country': default_country})
return TemplateResponse(
- request, 'styleguide.html',
- {'country_form': country_form})
+ request, 'styleguide.html')
diff --git a/templates/styleguide.html b/templates/styleguide.html
index 010ce1187c..c991c82adb 100644
--- a/templates/styleguide.html
+++ b/templates/styleguide.html
@@ -386,7 +386,12 @@
<div class="col-12">
<p><strong>Select</strong></p>
<div class="deliveryform">
- {{ country_form }}
+ <select>
+ <option>Netherlands</option>
+ <option>Unites States of America</option>
+ <option>Haiti</option>
+ <option>South Georgia and the South Sandwich Islands</option>
+ </select>
</div>
</div>
</div>