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.
- ob_dj_store/core/stores/admin.py +8 -0
- {ob_dj_store-0.0.17.8.dist-info → ob_dj_store-0.0.17.9.dist-info}/METADATA +1 -1
- {ob_dj_store-0.0.17.8.dist-info → ob_dj_store-0.0.17.9.dist-info}/RECORD +5 -5
- {ob_dj_store-0.0.17.8.dist-info → ob_dj_store-0.0.17.9.dist-info}/WHEEL +0 -0
- {ob_dj_store-0.0.17.8.dist-info → ob_dj_store-0.0.17.9.dist-info}/top_level.txt +0 -0
ob_dj_store/core/stores/admin.py
CHANGED
@@ -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
|
@@ -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=
|
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.
|
156
|
-
ob_dj_store-0.0.17.
|
157
|
-
ob_dj_store-0.0.17.
|
158
|
-
ob_dj_store-0.0.17.
|
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,,
|
File without changes
|
File without changes
|