This is a simple app to add vouchers support to your Django Project.
The idea is to define Forms for any kind of voucher that you want and add them to settings.VOUCHERS variable.
e.g: VOUCHERS = [(‘tshirt’, ‘project.vouchers.VoucherTShirtForm’)]
and then define in project/vouchers.py something like:
TSHIRT_SIZE = ((‘s’, ‘S’), (‘m’, ‘M’), (‘l’, ‘L’), (‘xl’, ‘XL’), (‘2xl’, ‘XXL’))
- class VoucherTShirtForm(forms.Form):
token = forms.Charfield(max_length=50) size = forms.ChoiceField(choices=TSHIRT_SIZE) address = forms.CharField(max_length=200) email = forms.EmailField()
Release files for django-vouchers 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-vouchers-0.6.tar.gz | 9.8 kB | Details |
Release files / django-vouchers-0.6.tar.gz
| Download URL | django-vouchers-0.6.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb1b76272d043c53b1655abc14dd0a3505290bd412e2b874e10faf464b1b5417
|
|
BLAKE2b-256 checksum How to use checksums |
a1102703ca4ec2cb1aa51292ba25f8f62fa482d61ebbe20ee924811d172f08fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |