Skip to content

Commit

Permalink
parkstay.utils.create_temp_bookingupdate: unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival committed Mar 15, 2018
1 parent 7cae4a3 commit a145577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parkstay/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ def create_temp_bookingupdate(request,arrival,departure,booking_details,old_book
lines = price_or_lineitems(request,booking,booking.campsite_id_list)
booking_arrival = booking.arrival.strftime('%d-%m-%Y')
booking_departure = booking.departure.strftime('%d-%m-%Y')
reservation = "Reservation for {} from {} to {} at {}".format('{} {}'.format(booking.customer.first_name,booking.customer.last_name),booking_arrival,booking_departure,booking.campground.name)
reservation = u'Reservation for {} from {} to {} at {}'.format(
u'{} {}'.format(booking.customer.first_name, booking.customer.last_name),
booking_arrival, booking_departure, booking.campground.name)
# Proceed to generate invoice
checkout_response = checkout(request,booking,lines,invoice_text=reservation,internal=True)
internal_create_booking_invoice(booking, checkout_response)
Expand Down

0 comments on commit a145577

Please sign in to comment.