from django.shortcuts import render_to_response
from django.template import RequestContext
-from models import Booking
+from models import Booking, TICKET_PRICE
class BookingForm(django.forms.ModelForm):
class Meta:
confirm_booking(booking, 'tickets/booked.eml')
return render_to_response('tickets/booked.html', {'booking' : booking}, context_instance=RequestContext(request))
- return render_to_response('tickets/bookingform.html', {'form' : f}, context_instance=RequestContext(request))
+ return render_to_response('tickets/bookingform.html', {'form' : f, 'price' : TICKET_PRICE}, context_instance=RequestContext(request))
# These two forms are used for entering payment details. They aren't
# very different, so it should really be possible to merge them (but