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

2023-03-01 Thread matteo vitali
@ Adam, thanks to you for your feedback Il giorno martedì 28 febbraio 2023 alle 21:51:15 UTC+1 Adam Johnson ha scritto: > Hi Matteo, > > I agree with Mariusz on the ticket - this is a step beyond what Django > should support. You've shown in your proposal that such a function takes 3 > lines o

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

2023-02-28 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Matteo, I agree with Mariusz on the ticket - this is a step beyond what Django should support. You've shown in your proposal that such a function takes 3 lines of code for PostgreSQL. I don't think this is a burden on developers to implement when needed. Also, the TruncDate(Now()) pattern is e

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

2023-02-26 Thread matteo vitali
Hi everyone, it's my first thread here and sorry in advance for my bad english. Regarding the topic that I wanted to bring to the attention of the community, I have already opened a ticket and a thread on discord, but I was advised to try to open a discussion here to see if it might be of inte