Skip to main content

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)

Source distribution for django-vouchers 0.6
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

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page