1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

🐛 timezone.now is a DateTime, not a Date

This commit is contained in:
Pierre-antoine Comby
2020-08-08 15:30:33 +02:00
parent e4998cb6e3
commit 18eaf4477e
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class Profile(models.Model):
default=0,
)
last_report = models.DateField(
last_report = models.DateTimeField(
verbose_name=_("last report date"),
default=timezone.now,
)