From 4272c9b075a2b3d92eacf684985af283b92477a1 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Wed, 29 Nov 2017 21:28:54 -0500 Subject: [PATCH] Add a basic bar chart showing average feeding durations over time. --- babybuddy/settings/development.py | 1 + .../dashboard/child_button_group.html | 1 + reports/graphs/__init__.py | 1 + reports/graphs/feeding_duration.py | 67 +++++++++++++++++++ .../templates/reports/feeding_duration.html | 13 ++++ reports/tests/tests_views.py | 3 + reports/urls.py | 4 ++ reports/views.py | 24 +++++++ 8 files changed, 114 insertions(+) create mode 100644 reports/graphs/feeding_duration.py create mode 100644 reports/templates/reports/feeding_duration.html diff --git a/babybuddy/settings/development.py b/babybuddy/settings/development.py index 0accffab..ffccea49 100644 --- a/babybuddy/settings/development.py +++ b/babybuddy/settings/development.py @@ -5,6 +5,7 @@ from .base import * SECRET_KEY = 'CHANGE ME' DEBUG = True +TIME_ZONE = 'America/New_York' # Database diff --git a/dashboard/templates/dashboard/child_button_group.html b/dashboard/templates/dashboard/child_button_group.html index 8066d9b3..461faeb8 100644 --- a/dashboard/templates/dashboard/child_button_group.html +++ b/dashboard/templates/dashboard/child_button_group.html @@ -16,6 +16,7 @@