django-planet
April 23, 2019

Django Custom Lookups

published by clivern
in blog Django | Clivern
original entry Django Custom Lookups

By default Django has a date lookup that support timezones. It actually will wrap your field with CONVERT_TZ in case USE_TZ is True. This is pretty awesome unless you have timezones table empty because this call will return Null. But even the following will work, It is not safe with Daylight saving timing. You can […]

The post Django Custom Lookups first appeared on Clivern.