ob-dj-store 0.0.19.5__py3-none-any.whl → 0.0.19.7__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.
@@ -1402,9 +1402,12 @@ class FavoriteSerializer(ArabicFieldsMixin, serializers.ModelSerializer):
1402
1402
  try:
1403
1403
  extra = obj.extras.get(content_type=content_type)
1404
1404
  inventory = extra.content_object.inventories.get(store=store_id)
1405
- if inventory.is_uncountable:
1406
- return True
1407
- return inventory.quantity > 0
1405
+ if inventory.is_snoozed:
1406
+ return False
1407
+ else:
1408
+ if inventory.is_uncountable:
1409
+ return True
1410
+ return inventory.quantity > 0
1408
1411
  except ObjectDoesNotExist:
1409
1412
  return False
1410
1413
  return None
@@ -151,7 +151,7 @@ class CategoryAdmin(admin.ModelAdmin):
151
151
  )
152
152
 
153
153
 
154
- class ProductVariantAdmin(admin.ModelAdmin):
154
+ class ProductVariantAdmin(ImportExportModelAdmin, admin.ModelAdmin):
155
155
  inlines = [
156
156
  InventoryInlineAdmin,
157
157
  ProductAttributeInlineAdmin,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-dj-store
3
- Version: 0.0.19.5
3
+ Version: 0.0.19.7
4
4
  Summary: OBytes django application for managing ecommerce stores.
5
5
  Home-page: https://www.obytes.com/
6
6
  Author: OBytes
@@ -3,14 +3,14 @@ ob_dj_store/apis/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
3
3
  ob_dj_store/apis/stores/filters.py,sha256=zKBXPBoqIyFlSeZOECp97RTWvSLqNPnlPhEp7p8W5tE,9702
4
4
  ob_dj_store/apis/stores/urls.py,sha256=7vwogfIGcKS0hHYK3iBXKQwi1kCA_vuHY1eZt8rAspg,2021
5
5
  ob_dj_store/apis/stores/views.py,sha256=aE4LFPHzs_CtzZ8K5-vAbDn_51hyhi0KIsi7cV8dpkA,43372
6
- ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=vpO_IXF2Fqfy7ML013nWRLeXAVZmpf3pLavotLaEr-M,64410
6
+ ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=LDFvR0gjDMJrCvT3urrmn2hfnBxy5qi6V0xhzZaVAGA,64518
7
7
  ob_dj_store/apis/tap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  ob_dj_store/apis/tap/serializers.py,sha256=KPrBK4h2-fWvEVf6vOj2ww5-USV9WqpyYicIqoHIiXI,1065
9
9
  ob_dj_store/apis/tap/urls.py,sha256=bnOTv6an11kxpo_FdqlhsizlGPLVpNxBjCyKcf3_C9M,367
10
10
  ob_dj_store/apis/tap/views.py,sha256=vG0rC-PQHCnrbNsPW1gClx0rkaIjALEAuj5cQKmCTo0,2664
11
11
  ob_dj_store/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  ob_dj_store/core/stores/__init__.py,sha256=-izNGrxNn_nn3IQXd5pkuES9lSF-AHYb14yhNPozYCI,65
13
- ob_dj_store/core/stores/admin.py,sha256=evYWdXr0ako83B7Z1ply0h2OYesaW5gJysBCEbWYZ7k,14479
13
+ ob_dj_store/core/stores/admin.py,sha256=fGjjpDkPzQM2Fwo5yGzeoeSpX2CW2RJQ4kfftD5NwyM,14503
14
14
  ob_dj_store/core/stores/admin_inlines.py,sha256=2K8iDmP4h0CLIOqy3x-ZXXpgYnT2jqL4cg5YFdiho8s,2976
15
15
  ob_dj_store/core/stores/apps.py,sha256=ZadmEER_dNcQTH617b3fAsYZJSyRw0g46Kjp4eOAsOU,498
16
16
  ob_dj_store/core/stores/managers.py,sha256=lz2CE4PJCI1ViO-CU61LqTr43O41aGRQkbWZUR5Fmfg,9909
@@ -155,7 +155,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
155
155
  ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
156
156
  ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
157
157
  ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
158
- ob_dj_store-0.0.19.5.dist-info/METADATA,sha256=OdRwSjea-6dCO6EssJeeNlCdkHPjf5Lr8kXkoj19m0I,2827
159
- ob_dj_store-0.0.19.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
160
- ob_dj_store-0.0.19.5.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
161
- ob_dj_store-0.0.19.5.dist-info/RECORD,,
158
+ ob_dj_store-0.0.19.7.dist-info/METADATA,sha256=kwZw8AuzWDZ6HPYJwYWGx-ng2h7yiLArr5KQGJCc7BY,2827
159
+ ob_dj_store-0.0.19.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
160
+ ob_dj_store-0.0.19.7.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
161
+ ob_dj_store-0.0.19.7.dist-info/RECORD,,