Christopher C. Wells
95a2cdf06d
Use day precision for child age ( #167 )
2020-10-25 20:06:21 -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
7abe7b2a5f
Add test for USE_24_HOUR_TIME_FORMAT ( #148 )
...
Note: this new test has been tagged "isolate" and excluded from regular tests
because the locale behavior being tested involves Django internals that must
be handled at initialization and cannot be changed during runtime (i.e. this
new test with PASS when run alone, but FAIL when run with other tests).
A future commit or set of commits should come up with a way to execute all
tests tagged "isolate" in isolated test environments as part of the full test
suite. For now, this test simply does not run until it is run manually.
2020-07-22 21:56:29 -07:00
Christopher C. Wells
8f3f8e5104
Add tests for template tag ( #148 )
2020-07-22 20:16:23 -07:00
Christopher C. Wells
4d71f9c5ec
Add 24 hour time format override support to input fields ( #148 )
2020-07-21 22:03:08 -07:00
Christopher Charbonneau Wells
cbf6f0ce1e
Fix minor linting issues
2020-03-30 05:25:57 -07:00
Peter Hardy
dfd89ae339
Tests for initial feeding methods ( #127 )
2020-03-28 21:54:07 +11:00
Peter Hardy
4581722e0b
Actually check for FBM as well ( #127 ).
2020-03-26 22:28:27 +11:00
Peter Hardy
dce0cd1e10
Update method select for when formula types selected ( #127 )
2020-03-26 22:16:07 +11:00
Peter Hardy
4978208d7f
Prepopulate method for formula types ( #127 ).
2020-03-26 22:15:08 +11: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
959649f5f7
Add data import tests
2020-02-18 14:41:33 -08:00
Christopher C. Wells
8c64dd8cae
Configure support for imports
2020-02-18 14:41:33 -08:00
Christopher C. Wells
e81d3c100c
Fix linting issues
2020-02-18 14:41:33 -08:00
Christopher C. Wells
796ba1ae7f
Exclude duration (calculated) from model exports
2020-02-18 14:41:33 -08:00
Christopher C. Wells
c9f39437c2
Add child name data to exports
2020-02-18 14:41:33 -08:00
Christopher C. Wells
014b373a78
Add initial basic admin import/export support
2020-02-18 14:41:33 -08:00
Christopher C. Wells
37fc8aa5a8
Update list templates to include notes
2020-02-16 15:09:57 -08:00
Christopher C. Wells
f681c579e5
Add missing `form_class` value to core model update forms
2020-02-16 15:09:57 -08:00
Christopher C. Wells
11164f0cd0
Set notes textarea to 5 rows
2020-02-16 15:09:57 -08:00
Christopher C. Wells
e3c2f0c0b9
Implement example notes handling in Diaper Change list
2020-02-16 15:09:57 -08:00
Christopher C. Wells
48a0093700
Add general notes to most models
2020-02-16 15:09:57 -08:00
Christopher C. Wells
60cd90ca80
Use `last()` instead of `latest()`
...
With `latest()`, an exception is thrown if there is one child in the database and no feeding entries.
2020-02-08 14:02:47 -08:00
Christopher C. Wells
af710b977a
Add tests for inactive Timer delete functionality
2020-02-06 21:50:22 -08:00
Christopher C. Wells
127c3d5cb0
Add ability to delete all inactive Timers ( #108 )
2020-02-06 21:15:36 -08:00
Christopher C. Wells
005a4f180e
Correct timer urls to use plural form
2020-02-06 20:14:01 -08:00
Christopher C. Wells
6333b0b1ea
Move add button to header in list views
2020-02-06 20:09:24 -08:00
Christopher C. Wells
703782b21c
Use provided `end` in Timer.stop() ( #111 )
2020-02-06 19:56:26 -08:00
Christopher C. Wells
17ed16bc8b
Hide Child from Timer detail in one child use cases
2020-01-31 12:01:17 -08:00
Christopher C. Wells
05266d4b76
Mute child name on timer detail
2020-01-31 09:09:01 -08:00
Christopher C. Wells
8c28e8941e
Update admin fields for core Timer model
2020-01-31 09:09:01 -08:00
Christopher C. Wells
6ba6e429cd
Add core Timer tests
2020-01-31 09:09:01 -08:00
Christopher C. Wells
f7d9f6b361
Refactor core forms test base class
...
The extra child added in the base classes caused failures with the `test_child_with_one_child` test.
2020-01-31 09:09:01 -08:00
Christopher C. Wells
385d833247
Add test for `instance_add_url` template tag
2020-01-31 09:09:01 -08:00
Christopher C. Wells
2b0e15d8ec
Add tests for initial values settings on core models
2020-01-31 09:09:01 -08:00
Christopher C. Wells
bd79a3f2d1
Do not use generated fake data in form tests
...
This could cause unpredictable errors during tests so each test case should set up it's own environment.
2020-01-31 09:09:01 -08:00
Christopher C. Wells
1d492e4163
Refactor core form tests for better organization and coverage
2020-01-31 09:09:01 -08:00
Christopher C. Wells
39b0df534b
Correct success message for Child delete form
2020-01-31 09:09:01 -08:00
Christopher C. Wells
107257cc34
Update model tests for timer-child relationship changes
2020-01-31 09:09:01 -08:00
Christopher C. Wells
3eb0e336c6
Refactor core forms on a base class to handle initial values
2020-01-31 09:09:01 -08:00
Christopher C. Wells
4e01365e85
Set Child from an argument instead of the timer
2020-01-31 09:09:01 -08:00
Christopher C. Wells
5e9946ecd6
Respect child if set when setting feeding defaults
2020-01-31 09:09:01 -08:00
Christopher C. Wells
b31d9194d9
Include child when setting defaults from timer
2020-01-31 09:09:01 -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
475b7abf78
Apply custom style to `.datetimepicker-input`
2020-01-31 08:47:03 -08:00
Christopher C. Wells
b8e2416cd1
Set all datetime fields to `readonly`
2020-01-31 08:47:03 -08:00
Christopher C. Wells
387bc36956
Fix incorrect element ID for timer start field
2020-01-27 15:09:16 -08:00