Fix last diaper change time on card.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-24 16:29:31 -04:00
parent e3d7d64c35
commit 0da15482bd
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def card_diaperchange_types(child):
stats[date]['wet_pct'] = info['wet'] / total * 100
stats[date]['solid_pct'] = info['solid'] / total * 100
return {'stats': stats, 'last_change': instances.last()}
return {'stats': stats, 'last_change': instances.first()}
@register.inclusion_tag('cards/tummytime_last.html')