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.
- ob_dj_store/apis/stores/filters.py +5 -2
- {ob_dj_store-0.0.21.2.dist-info → ob_dj_store-0.0.21.3.dist-info}/METADATA +1 -1
- {ob_dj_store-0.0.21.2.dist-info → ob_dj_store-0.0.21.3.dist-info}/RECORD +5 -5
- {ob_dj_store-0.0.21.2.dist-info → ob_dj_store-0.0.21.3.dist-info}/WHEEL +0 -0
- {ob_dj_store-0.0.21.2.dist-info → ob_dj_store-0.0.21.3.dist-info}/top_level.txt +0 -0
@@ -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
|
-
|
107
|
-
|
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
|
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=
|
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.
|
164
|
-
ob_dj_store-0.0.21.
|
165
|
-
ob_dj_store-0.0.21.
|
166
|
-
ob_dj_store-0.0.21.
|
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,,
|
File without changes
|
File without changes
|