Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: updated api to change voucher name
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Sep 26, 2023
1 parent 0871938 commit 216ab8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce/extensions/api/v2/views/coupons.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def update_voucher_data(self, request_data, vouchers):
if 'name' in data:
for voucher in vouchers:
voucher_data = data.copy()
voucher_data['name'] = "%s - %d" % (voucher_data['name'], voucher.id + 1)
voucher_data['name'] = "%s - %d" % (voucher_data['name'], voucher.id + 1)
voucher.update(**voucher_data)
else:
vouchers.update(**data)
Expand Down

0 comments on commit 216ab8e

Please sign in to comment.