From a25e663a26c1c16f2bee03b0573e1add12c4b9dc Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 13 Aug 2020 18:54:53 +0200 Subject: [PATCH] Use datetime.today for DateField --- apps/treasury/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/treasury/models.py b/apps/treasury/models.py index 2d6d93dc..467a84bf 100644 --- a/apps/treasury/models.py +++ b/apps/treasury/models.py @@ -55,7 +55,7 @@ class Invoice(models.Model): ) date = models.DateField( - default=timezone.now, + default=datetime.today, verbose_name=_("Date"), )