ob-dj-store 0.0.17.8__py3-none-any.whl → 0.0.17.9__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.
@@ -410,6 +410,7 @@ class WalletTransactionAdmin(ImportExportModelAdmin, admin.ModelAdmin):
410
410
  list_display = [
411
411
  "id",
412
412
  "user",
413
+ "currency",
413
414
  "type",
414
415
  "amount",
415
416
  "is_cashback",
@@ -421,11 +422,18 @@ class WalletTransactionAdmin(ImportExportModelAdmin, admin.ModelAdmin):
421
422
  ]
422
423
  search_fields = [
423
424
  "wallet__user__email",
425
+ "wallet__user__currency",
424
426
  ]
425
427
 
426
428
  def user(self, obj) -> typing.Text:
427
429
  return obj.wallet.user.email
428
430
 
431
+ def currency(self, obj) -> typing.Text:
432
+ return obj.wallet.currency
433
+
434
+ def get_queryset(self, request):
435
+ return super().get_queryset(request).select_related("wallet__user")
436
+
429
437
  def save_model(self, request: Any, obj: Any, form: Any, change: Any) -> None:
430
438
  if not obj.pk:
431
439
  obj.is_by_admin = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-dj-store
3
- Version: 0.0.17.8
3
+ Version: 0.0.17.9
4
4
  Summary: OBytes django application for managing ecommerce stores.
5
5
  Home-page: https://www.obytes.com/
6
6
  Author: OBytes
@@ -10,7 +10,7 @@ ob_dj_store/apis/tap/urls.py,sha256=bnOTv6an11kxpo_FdqlhsizlGPLVpNxBjCyKcf3_C9M,
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=5nudX9BJ4lF58gYjAI3bR0dnVDJ_GxP-p1tBjEaPFws,12487
13
+ ob_dj_store/core/stores/admin.py,sha256=bXyvIcAgBXv3GLjaJsbbld1ksuwzLzqJRE5GYAJhEqQ,12735
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=Rhv_jTul29A0t_H7jiLQUewn4GnSbgYZ6kq4WAivvjc,9852
@@ -152,7 +152,7 @@ ob_dj_store/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
152
152
  ob_dj_store/utils/helpers.py,sha256=o7wgypM7mI2vZqZKkhxnTcnHJC8GMQDOuYMnRwXr6tY,2058
153
153
  ob_dj_store/utils/model.py,sha256=DV7hOhTaZL3gh9sptts2jTUFlTArKG3i7oPioq9HLFE,303
154
154
  ob_dj_store/utils/utils.py,sha256=8UVAFB56qUSjJJ5f9vnermtw638gdFy4CFRCuMbns_M,1342
155
- ob_dj_store-0.0.17.8.dist-info/METADATA,sha256=mfkmpYXZgtcUSeoD_MZhvF2rxLCqEB5QH31KVwGmrgE,2827
156
- ob_dj_store-0.0.17.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
157
- ob_dj_store-0.0.17.8.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
158
- ob_dj_store-0.0.17.8.dist-info/RECORD,,
155
+ ob_dj_store-0.0.17.9.dist-info/METADATA,sha256=awBG7XFsYkhj_uhHRTJrn6Fjs8vT8ZUzmZKodnl4Za4,2827
156
+ ob_dj_store-0.0.17.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
157
+ ob_dj_store-0.0.17.9.dist-info/top_level.txt,sha256=CZG3G0ptTkzGnc0dFYN-ZD7YKdJBmm47bsmGwofD_lk,12
158
+ ob_dj_store-0.0.17.9.dist-info/RECORD,,