From 0da15482bd95f5a659972749f9ad0460b6ba632a Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Thu, 24 Aug 2017 16:29:31 -0400 Subject: [PATCH] Fix last diaper change time on card. --- dashboard/templatetags/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/templatetags/dashboard.py b/dashboard/templatetags/dashboard.py index fc0e2d86..6871f1ca 100644 --- a/dashboard/templatetags/dashboard.py +++ b/dashboard/templatetags/dashboard.py @@ -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')