Commit Graph

52 Commits

Author SHA1 Message Date
Christopher C. Wells 759bbe9ddb Allow and default to NULL Sleep.nap via API
Fixes #657
2023-06-14 20:01:49 -07:00
Christopher C. Wells 7b7f17fde6 Remove "inactive" timer concept -- delete on complete
Closes #109
2023-03-25 13:23:05 -07:00
Christopher C. Wells 90e16431b8 Format code 2023-02-10 06:14:37 -08:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
Brian O'Connor 6c14590579 Add tags to the list view and the Api serializer 2023-01-29 14:09:35 -08:00
Paul Konstantin Gerke 5ea7d33ef6 Add back the UserProfile and use DRF nested relationship for profile page
- Also fix part of the openapi-specs. Item-model for profile page is still not
  rendered out however
2022-09-05 23:00:03 +02:00
Paul Konstantin Gerke 02ea6487d5 Remove UserSerializer 2022-09-05 22:11:20 +02:00
Paul Konstantin Gerke 878ff64fad Add tests, add username to api/profile endpoint 2022-08-30 22:49:54 +02:00
Paul Konstantin Gerke abcd832591 Serialize full profile page 2022-08-25 11:46:12 +02:00
Paul Konstantin Gerke a6433732b6 Experimental changes 2022-08-25 10:15:09 +02:00
Christopher C. Wells dd0ba29416 Use Taggit serializer for taggable models 2022-06-28 06:58:37 -07:00
Christopher Charbonneau Wells 1a19f05130
Add `timer` field data to OpenAPI schema (#474)
* Add timer as an actual field on the duration serializer

This change enables the timer field to be part of the generated OpenAPI
schema.
2022-06-06 06:47:57 -07:00
Christopher C. Wells 6d30969330 Reorder alpha API classes 2022-05-28 07:02:13 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy 5c45b037f0 Finish up adding the brestpump measurement 2022-04-04 20:39:39 -07:00
Christopher C. Wells fd66d3f369 Add tags field to supported models 2022-04-04 15:23:00 -07:00
Christopher C. Wells 908d7df5e4 Use singular form for Tag API class names 2022-04-03 17:06:02 -07:00
Paul Konstantin Gerke e5279f2d7a Fix tests 2022-03-02 23:31:11 +01:00
Paul Konstantin Gerke 4f325ba07b Remove BabyBuddy prefix from Tags-model 2022-03-02 21:53:51 +01:00
Paul Konstantin Gerke c665ebb181 Applied black 2022-02-27 20:36:31 +01:00
Paul Konstantin Gerke 5046b754e5 Add api-serializer 2022-02-15 22:24:13 +01:00
Paul Konstantin Gerke bf49cc92ad Initial (bugged) work on tag editor 2022-02-15 10:13:35 +01:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Yulian Kuncheff 0af4521005 Linting and faker changes 2021-12-31 09:19:53 -05:00
Yulian Kuncheff 9b604627a1 Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature. 2021-12-31 09:19:53 -05:00
jcgoette 5f2c31c5e3 lint 2021-02-09 18:10:36 -08:00
jcgoette 172167e6a1 add notes to applicable APIs 2021-02-09 18:10:36 -08:00
Christopher C. Wells 4e5153daed Default to current user on timer POST (#134) 2020-06-19 14:23:43 -07:00
Christopher C. Wells 910aff4d3b Always override child with Timer.child value (#131) 2020-03-14 13:33:05 -07:00
Christopher C. Wells 6d75dde424 Update serializers to accept a "timer" argument (#131) 2020-03-14 13:33:05 -07:00
Christopher C. Wells 76b7e90396 Pass full instance for API PATCH operations (#126)
This is necessary in order to allow partial updates of entries but also
provide full context for model `clean()`` methods that use multiple fields.
2020-03-13 20:29:07 -07:00
Christopher C. Wells 8421b14088 Update `api` app for latest core model changes 2020-01-31 09:09:01 -08:00
Christopher C. Wells c51e755c0f Add Diaper Change "amount" field data to API 2020-01-26 14:30:00 -08:00
Christopher C. Wells 243b9ef1c1 Add Temperature data to API. 2019-05-16 22:13:14 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells ed84f950bc Add a custom serializer for core models.
This serializer associates the core models with their related child fields and runs model clean() methods during POST requests.
2017-12-05 16:31:37 -05:00
Christopher Charbonneau Wells 067be4bf07 Add weight tracking. 2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells 8eef1574e4 Fix API child and user serializers.
The HyperlinkedIdentityField got broken somewhere along the way here and I am not sure, but this is not a priority right now.
2017-10-21 17:35:34 -04:00
Christopher Charbonneau Wells 37f28c3ff7 Add slug field to Child. 2017-08-18 08:12:50 -04:00
Christopher Charbonneau Wells 1b015d4dde Add user association to Timer (WIP - adding timer broken) 2017-08-17 14:42:44 -04:00
Christopher Charbonneau Wells 55a908f546 Fix URLs configuration to prevent namespace issues between api and core apps. 2017-08-17 12:17:51 -04:00
Christopher Charbonneau Wells 6b2de93736 Add Timer model.
This will used for creating timers in the app and (eventually) applying them to entries during create operations.
2017-08-16 18:33:02 -04:00
Christopher Charbonneau Wells 79472dcdbe Add an amount field to the Feeding model. 2017-08-16 18:07:25 -04:00
Christopher Charbonneau Wells 6e2112b6b5 Refactor model "Baby" as "Child". 2017-08-16 08:49:58 -04:00
Christopher Charbonneau Wells 99c6e54cc2 Add a generic Note model. 2017-08-13 16:48:16 -04:00
Christopher Charbonneau Wells 2452826586 Remove example User model API. 2017-08-13 16:17:18 -04:00
Christopher Charbonneau Wells 105adec971 Add DiaperChange model. 2017-08-13 15:51:25 -04:00
Christopher Charbonneau Wells 9422d73421 Add a TummyTime model. 2017-08-13 15:05:44 -04:00
Christopher Charbonneau Wells 481ada74f8 Add Feeding model. 2017-08-13 11:59:14 -04:00
Christopher Charbonneau Wells 7e0b81960f Add Sleep duration string. 2017-08-13 11:20:09 -04:00