Re: Proposal: Extend db.models.functions.datetime.Now

2023-03-01 Thread matteo vitali
r(mydatefiled__lte=Today()) >> >> and not : >> >> MyModel.objects.filter(mydatefiled__lte=TruncDate(Now()) >> >> Could it be useful to extend the Now function with native casts by >> leveraging database templates? I understand very well that extendi

Proposal: Extend db.models.functions.datetime.Now

2023-02-26 Thread matteo vitali
keeping it as minimal as possible. It is probably easier to override Now in your project when needed but I would like to hear your feedback on this. -- Matteo Vitali https://trottomv.me -- You received this message because you are subscribed to the Google Groups "Django developers (