import django
from django.shortcuts import render_to_response
+from django.template import RequestContext
from models import Booking
if f.is_valid():
booking = f.save()
confirm_booking(booking)
- return render_to_response('tickets/booked.html', {'booking' : booking})
+ return render_to_response('tickets/booked.html', {'booking' : booking}, context_instance=RequestContext(request))
- return render_to_response('tickets/bookingform.html', {'form' : f})
+ return render_to_response('tickets/bookingform.html', {'form' : f}, context_instance=RequestContext(request))