Skip to content

Commit b4cbed3

Browse files
committed
fix retrieving unused coupons, apply byteweaver#35
1 parent 7a93362 commit b4cbed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coupons/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def num_coupons_used(self, obj):
9898
num_coupons_used.short_description = _("used")
9999

100100
def num_coupons_unused(self, obj):
101-
return obj.coupons.used().count()
101+
return obj.coupons.unused().count()
102102

103103
num_coupons_unused.short_description = _("unused")
104104

0 commit comments

Comments
 (0)