mirror of https://github.com/snachodog/mybuddy.git
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:
parent
3d2baed7ab
commit
b5163c2360
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue