ob-dj-store 0.0.21.2__py3-none-any.whl → 0.0.21.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ from urllib.parse import unquote
2
+
1
3
  from django.contrib.contenttypes.models import ContentType
2
4
  from django.contrib.postgres.search import SearchVector
3
5
  from django.db.models import Prefetch, Q
@@ -103,8 +105,9 @@ class ProductFilter(filters.FilterSet):
103
105
  def filter_search(self, queryset, name, value):
104
106
  language = self.request.META.get("HTTP_LANGUAGE", "").strip().upper()
105
107
  if language == "AR":
106
- query = Q(name_arabic__icontains=value) | Q(
107
- description_arabic__icontains=value
108
+ value_ar = unquote(value)
109
+ query = Q(name_arabic__icontains=value_ar) | Q(
110
+ description_arabic__icontains=value_ar
108
111
  )
109
112
  else:
110
113
  query = Q(name__icontains=value) | Q(description__icontains=value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ob-dj-store
3
- Version: 0.0.21.2
3
+ Version: 0.0.21.3
4
4
  Summary: OBytes django application for managing ecommerce stores.
5
5
  Home-page: https://www.obytes.com/
6
6
  Author: OBytes
@@ -1,6 +1,6 @@
1
1
  ob_dj_store/apis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  ob_dj_store/apis/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- ob_dj_store/apis/stores/filters.py,sha256=cJ7OnNLFT1N5lp3IXFUpGMgqm-jhS24g-Y8pZmEMe58,10260
3
+ ob_dj_store/apis/stores/filters.py,sha256=JeUtcicJ3cFnZc71aUMEwn2jaVj1oNQsZOCZfdxGDu8,10338
4
4
  ob_dj_store/apis/stores/urls.py,sha256=W9sNJ7ST9pGnfVCf7GmduDO-_zK9MGTI6ybV8n-lzSc,2111
5
5
  ob_dj_store/apis/stores/views.py,sha256=cwDFNY2rtTfjl_F9PpR5zOJy2DPmGidOjIlJ9fsgSYI,42744
6
6
  ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=GUsUTN4MTXq92Uriv6Ql9MzjZJsSbmFDC3lZhSmB7vE,68219
@@ -160,7 +160,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
160
160
  ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
161
161
  ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
162
162
  ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
163
- ob_dj_store-0.0.21.2.dist-info/METADATA,sha256=3N8bQGyJNEAIPzgZDu-MpfFdHHNPmEo3Uv4pTjgtK84,2850
164
- ob_dj_store-0.0.21.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
165
- ob_dj_store-0.0.21.2.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
166
- ob_dj_store-0.0.21.2.dist-info/RECORD,,
163
+ ob_dj_store-0.0.21.3.dist-info/METADATA,sha256=-i8CuO0fLzxvE5HZ-Vjd9gItuWICNyeg2QLrNZChBK4,2850
164
+ ob_dj_store-0.0.21.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
165
+ ob_dj_store-0.0.21.3.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
166
+ ob_dj_store-0.0.21.3.dist-info/RECORD,,