mybuddy/babybuddy/migrations
Benjamin Häublein 1dca1cc050
Add option for hiding empty dashboard cards (#213)
* add option for hiding empty dashboard cards

* rework add option for hiding empty dashboard cards

missed statistics.html

* don't exit early in cards

* add forms test for dashboard_hide_empty

* add tests for cards

* fix early exit in card_diaperchange_latest

* change dependency of migration

* rename migration

* introduce hiding of cards in templates

* linting

* add context to test_card_diaperchange_last

* setup MockUserRequest

* add context to all cards test cases

* add test for settings_dashboard_hide_empty_on

* change dashboard_hide_test, but it doesn't work

* add test for _user_wants_hide

* fix test_user_wants_hide user object, simpliy check for data['empty']

* add test for user_wants_hide to every card

* linting

* fix trailing whitespace

* rename user_wants_hide to hide_empty

* fix hidden statistics

* add user.refresh_from_db to test case, add test case for dashboard_refresh_rate

* Follow redirect and correct assertion

Co-authored-by: jcgoette <jcgoette@gmail.com>
Co-authored-by: Benjamin Häublein <benjaminh@debian.vm.hp>
Co-authored-by: Christopher C. Wells <git@chris-wells.net>
2021-05-13 20:28:39 -07:00
..
0001_initial.py Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
0002_add_settings.py Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
0003_add_refresh_help_text.py Add missing migration from 096092b. 2018-07-15 07:20:44 -07:00
0004_settings_language.py Store and retrieve language in user Setting. 2019-04-16 21:41:55 -07:00
0005_auto_20190502_1701.py Update example French translations. 2019-05-02 10:25:21 -07:00
0006_auto_20190502_1744.py Add Swedish translations. 2019-05-02 11:48:36 -07:00
0007_auto_20190607_1422.py Add German to list of language options. 2019-06-07 07:22:55 -07:00
0008_auto_20200120_0622.py Add missed language update migrations 2020-01-20 15:50:35 -08:00
0009_settings_timezone.py Use "common_timezones" instead of "all_timezones" 2020-02-14 10:56:13 -08:00
0010_auto_20200609_0649.py Ensure naps are captured for both start and end time 2020-06-09 07:02:28 -07:00
0011_auto_20200813_0238.py Make datetime editable for Note model 2020-08-12 19:47:58 -07:00
0012_auto_20201024_1847.py Migrate timezones data 2020-10-25 18:58:09 -07:00
0013_auto_20210411_1241.py Update Python dependencies and runtime 2021-04-11 12:49:15 -07:00
0014_settings_hide_empty.py Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
__init__.py Rename project Baby Buddy. 2017-10-22 14:00:42 -04:00