ob-dj-store 0.0.18__py3-none-any.whl → 0.0.18.1__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.
@@ -480,9 +480,10 @@ class OrderSerializer(serializers.ModelSerializer):
480
480
  def perform_payment(self, amount, payment_method, order_store, orders, currency):
481
481
  from ob_dj_store.core.stores.gateway.tap.utils import TapException
482
482
 
483
+ user = self.context["request"].user
483
484
  try:
484
485
  payment = Payment.objects.create(
485
- user=self.context["request"].user,
486
+ user=user,
486
487
  amount=amount,
487
488
  method=payment_method,
488
489
  currency=currency,
@@ -493,7 +494,10 @@ class OrderSerializer(serializers.ModelSerializer):
493
494
  raise serializers.ValidationError(detail=err.messages)
494
495
  except TapException as err:
495
496
  raise serializers.ValidationError({"tap": _(str(err))})
496
- except ObjectDoesNotExist:
497
+ except ObjectDoesNotExist as err:
498
+ logger.error(
499
+ f"Payment Object not created: user:{user}, method:{payment_method}, currency:{currency}, error:{err}"
500
+ )
497
501
  tap_transaction = None
498
502
 
499
503
  return {
@@ -448,6 +448,8 @@ class WalletTransactionAdmin(ImportExportModelAdmin, admin.ModelAdmin):
448
448
  "wallet__currency",
449
449
  ]
450
450
 
451
+ autocomplete_fields = ["wallet"]
452
+
451
453
  def user(self, obj) -> typing.Text:
452
454
  return obj.wallet.user.email
453
455
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-dj-store
3
- Version: 0.0.18
3
+ Version: 0.0.18.1
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=1EeW_FQBPCUVtd5Ehr9Dj2pzpbRgbSClAvto_OqTRck,61827
6
+ ob_dj_store/apis/stores/rest/serializers/serializers.py,sha256=kgLC1H2hjfKDRgvdwCp7ok7em73FtaxoiSF8sacXAIY,62012
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=VnVquybTHlJquxsC0RNTy20dtLXalchO0SlGjSDaBng,2666
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=TE95erlxFcSbM-VU7NVtoqrXGL1La452O2x1XKSpDLs,13415
13
+ ob_dj_store/core/stores/admin.py,sha256=_zg10EVLLOfL8CdSsG7mRpZmxrigBS6tx25XU55caJ8,13453
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
@@ -153,7 +153,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
153
153
  ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
154
154
  ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
155
155
  ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
156
- ob_dj_store-0.0.18.dist-info/METADATA,sha256=DByGtiEtfTat6QeTH17P2W81sRi_K1Y5Dd98CslmWzg,2825
157
- ob_dj_store-0.0.18.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
158
- ob_dj_store-0.0.18.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
159
- ob_dj_store-0.0.18.dist-info/RECORD,,
156
+ ob_dj_store-0.0.18.1.dist-info/METADATA,sha256=vvIqd9hwnFkSm7YxiXHZwFmwVC35vzpXTNJB7PCCFkI,2827
157
+ ob_dj_store-0.0.18.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
158
+ ob_dj_store-0.0.18.1.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
159
+ ob_dj_store-0.0.18.1.dist-info/RECORD,,