Use datetime.today for DateField

This commit is contained in:
Yohann D'ANELLO 2020-08-13 18:54:53 +02:00
parent 721da093e9
commit a25e663a26
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Invoice(models.Model):
)
date = models.DateField(
default=timezone.now,
default=datetime.today,
verbose_name=_("Date"),
)