Add feature: Filter timers by name

In this commit, we've implemented a new feature that enhances the usability and flexibility of BabyBuddy. Users can now filter timers by their names, making it convenient to find timers without having to remember or input their specific IDs. This is particularly useful when dealing with timers that users might not be consciously aware of or for which remembering IDs is not feasible.

This improvement has broader implications, especially when it comes to programmable scenarios such as leveraging Apple Shortcuts.
This commit is contained in:
Boris 2023-08-15 11:18:06 -05:00 committed by Christopher Charbonneau Wells
parent 3d2baed7ab
commit b5163c2360
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class TemperatureFilter(TimeFieldFilter, TagsFieldFilter):
class TimerFilter(StartEndFieldFilter):
class Meta(StartEndFieldFilter.Meta):
model = models.Timer
fields = sorted(StartEndFieldFilter.Meta.fields + ["user"])
fields = sorted(StartEndFieldFilter.Meta.fields + ["name", "user"])
class TummyTimeFilter(StartEndFieldFilter, TagsFieldFilter):