mirror of https://gitlab.crans.org/bde/nk20
Use datetime.today for DateField
This commit is contained in:
parent
721da093e9
commit
a25e663a26
|
@ -55,7 +55,7 @@ class Invoice(models.Model):
|
||||||
)
|
)
|
||||||
|
|
||||||
date = models.DateField(
|
date = models.DateField(
|
||||||
default=timezone.now,
|
default=datetime.today,
|
||||||
verbose_name=_("Date"),
|
verbose_name=_("Date"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue