Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove templates from account widgets
IKarbowiakd0b483ddc240
diff --git a/saleor/account/widgets.py b/saleor/account/widgets.pyindex bfd231eba3..5d544267e2 100644--- a/saleor/account/widgets.py+++ b/saleor/account/widgets.py@@ -15,8 +15,6 @@ class PhonePrefixWidget(PhoneNumberPrefixWidget):https://github.com/stefanfoulis/django-phonenumber-field/issues/82"""- template_name = "account/snippets/phone_prefix_widget.html"-def __init__(self, attrs=None):widgets = (Select(attrs=attrs, choices=phone_prefixes), TextInput())# pylint: disable=bad-super-call@@ -32,7 +30,6 @@ class PhonePrefixWidget(PhoneNumberPrefixWidget):class DatalistTextWidget(Select):- template_name = "account/snippets/datalist.html"input_type = "text"def get_context(self, *args):diff --git a/saleor/core/templatetags/widgets.py b/saleor/core/templatetags/widgets.pydeleted file mode 100644index 05be3569ef..0000000000--- a/saleor/core/templatetags/widgets.py+++ /dev/null@@ -1,5 +0,0 @@-from ...account.widgets import PhonePrefixWidget as StorefrontPhonePrefixWidget---class PhonePrefixWidget(StorefrontPhonePrefixWidget):- template_name = "dashboard/order/widget/phone_prefix_widget.html"diff --git a/templates/account/snippets/datalist.html b/templates/account/snippets/datalist.htmldeleted file mode 100644index 60ed5638c1..0000000000--- a/templates/account/snippets/datalist.html+++ /dev/null@@ -1,8 +0,0 @@-<input type="{{ widget.type }}" name="{{ widget.name }}" list="{{widget.name}}_list" {% if widget.value != None and widget.value != "" %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />--<datalist id="{{widget.name}}_list">-{% for group_name, group_choices, group_index in widget.optgroups %}{% if group_name %}- <optgroup label="{{ group_name }}">{% endif %}{% for option in group_choices %}- {% include option.template_name with widget=option %}{% endfor %}{% if group_name %}- </optgroup>{% endif %}{% endfor %}-</datalist>diff --git a/templates/account/snippets/phone_prefix_widget.html b/templates/account/snippets/phone_prefix_widget.htmldeleted file mode 100644index 83ba1eec5d..0000000000--- a/templates/account/snippets/phone_prefix_widget.html+++ /dev/null@@ -1,7 +0,0 @@-<div class="phone-prefix-input">- {% for widget in widget.subwidgets %}- <div>- {% include widget.template_name %}- </div>- {% endfor %}-</div>