Skip to content

Commit

Permalink
Merge pull request #572 from xzzy/master
Browse files Browse the repository at this point in the history
Bug fix for null captions
  • Loading branch information
dbca-asi committed Apr 3, 2019
2 parents 856846a + cab649f commit 9afc40f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mooring/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ def get_visit_rates(campsites_qs, start_date, end_date):
results[rate.campsite.pk][start+timedelta(days=i)]['child'] = str(rate.rate.child)
results[rate.campsite.pk][start+timedelta(days=i)]['infant'] = str(rate.rate.infant)
for b in booking_period:
if b.caption is None:
b.caption = ''
booking_period_row = {'id':b.id, 'period_name' : b.period_name, 'small_price': format(b.small_price,'.2f'), 'medium_price': format(b.medium_price,'.2f'), 'large_price' : format(b.large_price,'.2f'), 'start_time' : b.start_time, 'finish_time' : b.finish_time,'all_day' : b.all_day, 'caption': b.caption, 'created' : b.created }
# booking_period_row = {}
# booking_period_row['id'] = b.id
Expand Down

0 comments on commit 9afc40f

Please sign in to comment.