TimeField lacks hour/minute filters
|Reported by:||Matthew Somerville||Owned by:||Matthew Somerville|
|Component:||Database layer (models, ORM)||Version:||master|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
#8424 added hour/minute/second filter lookups to DateTimeField, but not TimeField. I'm not sure if this was deliberate, but it would seem useful to have the functionality on TimeFields too if possible.
A workaround is to use a DateTimeField and hide/set the date part within the model.
Change History (12)
comment:6 Changed 18 months ago by
|Summary:||TimeFIeld lacks hour/minute filters → TimeField lacks hour/minute filters|