Skip to content

feat(measurements): allow multiple entries per day#2257

Merged
rolandgeider merged 3 commits intowger-project:masterfrom
sg172003:feature/measurement-datetime-field
Apr 15, 2026
Merged

feat(measurements): allow multiple entries per day#2257
rolandgeider merged 3 commits intowger-project:masterfrom
sg172003:feature/measurement-datetime-field

Conversation

@sg172003
Copy link
Copy Markdown
Contributor

What does this PR do?

Allows multiple measurement entries per day by replacing the DateField
with a DateTimeField and removing the one-entry-per-day constraint.

Why?

Closes #2116 — measurement entries were limited to one per day.

Changes

  • Replaced DateField with DateTimeField in wger/measurements/models/measurement.py
  • Removed unique_together constraint from the Measurement model
  • Generated migration 0003_alter_measurement_unique_together_and_more

Reference

Same approach as #1814 (weight entries).

Checklist

  • Model updated
  • Migration generated and applied
  • No breaking changes

@rolandgeider rolandgeider mentioned this pull request Apr 14, 2026
@rolandgeider rolandgeider merged commit e76d9c4 into wger-project:master Apr 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow more than one measurement entry per day

2 participants