From: Matthijs Kooijman Date: Tue, 19 Oct 2010 13:40:33 +0000 (+0200) Subject: tickets: Send a confirmation when a payment is processed. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=sidebyside;h=28aef98ea30fda061ae05100240386cc3bd3f92b;hp=8b312f4e892698148d6de355cb5176ad3983f06d;p=matthijs%2Fprojects%2Fdorestad-bookings.git tickets: Send a confirmation when a payment is processed. --- diff --git a/tickets/templates/tickets/payed.eml b/tickets/templates/tickets/payed.eml new file mode 100644 index 0000000..e5e9cec --- /dev/null +++ b/tickets/templates/tickets/payed.eml @@ -0,0 +1,22 @@ +{% autoescape off %} +From: Dorestad 1493 +Subject: Reservering Dorestad 1493 betaald + +Beste {{ booking.name }}, + +je hebt {{ booking.tickets }} kaart{{booking.tickets|pluralize:"en"}} gereserveerd voor de Dorestad 1493 +voorstelling op {{ booking.get_show_display }}. + +Je betaling voor deze kaarten is zojuist verwerkt. Je hoeft verder +niets te doen, behalve langs te komen op de voorstelling en je +reserveringsnummer mee te nemen. + +Je reserveringsnummer is: {{ booking.id }} + +Als je nog vragen hebt, kun je contact opnemen met +dorestad@evolution-events.nl. + +Veel plezier bij de voorstelling! + +Evolution Events +{% endautoescape %} diff --git a/tickets/views.py b/tickets/views.py index a06086d..7c9e9fa 100644 --- a/tickets/views.py +++ b/tickets/views.py @@ -109,6 +109,7 @@ def payments(request): for b in bookings: b.payment = datetime.datetime.now() b.save() + confirm_booking(b, 'tickets/payed.eml') # Don't show the form again f = None