Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit d382a85

Browse files
authored
Update bulk coupon docs (#1396)
* Add update functionality to the bulk coupon script * Update create coupon script docs.
1 parent ad14175 commit d382a85

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

p3/management/commands/create_bulk_coupons.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
""" Create a batch of single use discount coupons from a CSV file.
2+
""" Create/update a batch of discount coupons from a CSV file.
33
44
Parameters: <conference> <csv-file>
55
6-
Creates coupons based on the CSV file contents:
6+
Creates/updates coupons based on the CSV file contents:
77
88
code - coupon code
99
max_usage - max. number of uses
@@ -14,6 +14,9 @@
1414
1515
Use --dry-run to test drive the script.
1616
17+
Existing coupon codes will get updated by the script. Indexing is by
18+
code.
19+
1720
"""
1821
import sys
1922
import csv

0 commit comments

Comments
 (0)