♻️(models) rename *_on fields to *_at

This is only for display, nothing has changed in database.
This commit is contained in:
Samuel Paccoud - DINUM
2024-01-15 09:16:55 +01:00
committed by Anthony LC
parent 65cfe7ff2b
commit cfc35ac23e
3 changed files with 14 additions and 14 deletions

View File

@@ -48,13 +48,13 @@ class BaseModel(models.Model):
editable=False,
)
created_at = models.DateTimeField(
verbose_name=_("created on"),
verbose_name=_("created at"),
help_text=_("date and time at which a record was created"),
auto_now_add=True,
editable=False,
)
updated_at = models.DateTimeField(
verbose_name=_("updated on"),
verbose_name=_("updated at"),
help_text=_("date and time at which a record was last updated"),
auto_now=True,
editable=False,