Christopher C. Wells
fad8f1500e
Make entry intersection check exclusive
...
Closes #263
2021-08-17 05:59:08 -07:00
Beni Cherniavsky-Paskin
29ef9f4f75
child slugs: allow unicode
...
This results in %-encoded URLs, but modern browsers display the unicode
chars (e.g. https://babybuddy.../children/мааян-паскин-чернявский ).
2021-04-30 14:47:08 -07:00
Beni Cherniavsky-Paskin
f58571bf17
child slugs: require non-blank
...
Currently it is easy for a child with non-ascii name to get empty slug:
'Мааян' 'Паскин-Чернявский' => '-'
'Мааян' 'Паскин' => ''
Once any child has an empty slug, many pages break with NoReverseMatch
errors. This commit at least prevents setting such names;
slug computation to be fixed later.
2021-04-30 14:47:08 -07:00
0x4161726f6e
f4b9053c00
Add solid food option to feeding types
...
I would find this helpful as I coordinate with day care
2021-04-15 05:45:25 -07:00
Christopher C. Wells
3f0694dc9d
Make datetime editable for Note model
...
Closes #151
2020-08-12 19:47:58 -07:00
Christopher C. Wells
d0b33c2b1b
Use user first and last name, when available, in UI
2020-02-18 14:41:33 -08:00
Christopher C. Wells
2346995cb3
Remove bottle-formula validation test
...
This is not really necessary and only serves as validation that will need to updated if model choices ever change.
2020-02-18 14:41:33 -08:00
Christopher C. Wells
48a0093700
Add general notes to most models
2020-02-16 15:09:57 -08:00
Christopher C. Wells
703782b21c
Use provided `end` in Timer.stop() ( #111 )
2020-02-06 19:56:26 -08:00
Christopher C. Wells
e5a5e330b9
Obscure timer-child relations for one child use case
2020-01-31 09:09:01 -08:00
Christopher C. Wells
fd6bcfe9a5
Maintain a cached count of Child instances
2020-01-31 09:09:01 -08:00
Christopher C. Wells
c80ec252bc
Add optional Child to Timer model
2020-01-31 09:09:01 -08:00
Christopher C. Wells
a8abfb725f
Add generic "Amount" field to Diaper Change model ( #77 )
2020-01-26 13:22:20 -08:00
Christopher C. Wells
b6733650dc
Use get_FOO_display for choices fields in templates
2019-11-09 16:42:51 -08:00
Christopher C. Wells
f270af8cd4
Add "Fortified brest milk" feeding type option ( #71 ).
2019-06-07 07:24:03 -07:00
Christopher C. Wells
4397d4a406
Add temperature tracking.
2019-05-16 21:33:26 -07:00
Christopher C. Wells
0261f39864
Add "both breasts" option for Feeding method ( #52 ).
2019-05-02 10:19:56 -07:00
Christopher C. Wells
185f52b01f
Fix linting issues.
2019-04-18 19:55:55 -07:00
Christopher C. Wells
b4c417ac3d
Add translatable verbose names to all Model fields.
2019-04-14 18:59:16 -07:00
Christopher C. Wells
ee82286da5
Add translatable strings support to formatted strings (WIP).
2019-04-14 14:42:58 -07:00
Christopher C. Wells
bd4705b77f
Add translateable strings support in core app.
2019-04-13 22:51:44 -07:00
Christopher Charbonneau Wells
5dc372281b
Remove all unicode_literals imports.
2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells
b972482cb1
Don't require color for solid diaper change entries.
2018-02-16 09:33:30 -05:00
Christopher Charbonneau Wells
e92d3f361e
Misc. Django 2.0 update changes.
2017-12-03 16:52:27 -05:00
Isaac Bythewood
bf62a4e252
Add ability to upload picture of child with thumbnailing capabilities.
2017-11-18 04:22:12 -05:00
Christopher Charbonneau Wells
067be4bf07
Add weight tracking.
2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells
1c5278cebf
Verify necessary fields before running model validation tests.
2017-11-07 07:07:51 -05:00
Christopher Charbonneau Wells
7955cd04a7
Fix linting error.
2017-11-05 15:02:22 -05:00
Christopher Charbonneau Wells
e6acfe4e75
Add date intersection validation for models with start and end dates.
2017-11-05 14:18:30 -05:00
Christopher Charbonneau Wells
4037f97e72
Add a NapManager to Sleep model and use it on the naps card.
2017-11-04 13:09:27 -04:00
Christopher Charbonneau Wells
f6dd38a891
Make "nap" bounds configurable with a 6AM - 6PM default.
2017-11-04 09:42:18 -04:00
Christopher Charbonneau Wells
df5c3e98b9
Add core templatetags tests and update some docstrings.
2017-11-03 23:55:42 -04:00
Christopher Charbonneau Wells
fe3e753d65
Update tests for new validators.
2017-11-03 23:29:55 -04:00
Christopher Charbonneau Wells
5343db5bbb
Validate model time fields as being in the past.
2017-11-03 21:30:40 -04:00
Christopher Charbonneau Wells
237796a644
Move form clean methods to models.
2017-11-01 16:14:42 -04:00
Bob Thomas
1eeba2398d
Add validation for model durations
...
It was previously possible to accidentally enter obviously wrong values
for start/end dates. Add some basic validation to catch input errors
when creating or editing various models (when not using a timer).
2017-11-01 12:44:07 -04:00
Christopher Charbonneau Wells
5afc55ca31
Make Timer instance.start field editable.
2017-10-28 13:27:33 -04:00
Christopher Charbonneau Wells
03dc139b0e
Explicitly set Timer.duration to None on instance save when the instance is still running.
...
This has to be done because the Timer.from_db() method fills in duration against the current time when the instance is still active. This issue was introduced in fd960cd
.
2017-10-28 12:43:43 -04:00
Christopher Charbonneau Wells
6e936df1bc
Use a from_db class method instead of a separate method to always provider a timer's current duration.
2017-10-27 21:33:26 -04:00
Christopher Charbonneau Wells
05e9927d74
Remove unnecessary "duration_td" Tummy Time method.
2017-10-25 09:45:53 -04:00
Christopher Charbonneau Wells
e3b0fc2468
Remove unused "since" model methods.
...
This "to string" functionality is and should be handled in templates.
2017-10-25 09:19:14 -04:00
Christopher Charbonneau Wells
b393de90dc
Simplify model string names.
2017-10-25 08:58:15 -04:00
Christopher Charbonneau Wells
3d88235eb9
Implement generic, app-specific "icon" style names over FA.
2017-09-15 12:29:56 -04:00
Christopher Charbonneau Wells
c49b8d1930
Simplify core model names.
2017-09-15 11:55:30 -04:00
Christopher Charbonneau Wells
99dcb1e7ca
Fixer Timer.stop method to respect custom end argument.
2017-09-09 13:00:13 -04:00
Christopher Charbonneau Wells
a9bc52dfff
Move timer_stop to a model method and add a restart method.
2017-09-09 12:47:41 -04:00
Christopher Charbonneau Wells
b317c08504
Fix Tummy Time display fields.
2017-09-08 18:03:44 -04:00
Christopher Charbonneau Wells
d11733442d
Add a diaper change types over time report.
2017-08-24 14:54:01 -04:00
Christopher Charbonneau Wells
eefa00bfd3
Add a very basic prototype dashboard for multiple children.
2017-08-24 13:09:56 -04:00
Christopher Charbonneau Wells
6d73cb69f6
Convert duration_string to a template tag (WIP).
2017-08-19 16:46:50 -04:00