wger icon indicating copy to clipboard operation
wger copied to clipboard

Add fasting feature: FastingWindow model, tests, and views

Open gracechen636 opened this issue 2 weeks ago • 0 comments

Proposed Changes

Add FastingWindow model to represent user fasting periods, including start/end times, optional goal duration, etc.

Provide convenience properties for active status and duration calculations.

Add unit tests covering model creation, behavior, and ordering.

Related Issue(s) #2134

Do users need to run some commands in their local instances due to this PR (e.g. database migration, deployment changes)?

Maybe. This PR introduces a new model, so users may need to run database migrations:

python manage.py makemigrations python manage.py migrate

gracechen636 avatar Dec 09 '25 20:12 gracechen636