From e07869e2b79eadd685dd5d4aafed5204b3e3d06d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 20 Jan 2024 23:40:47 -0500 Subject: [PATCH] add help text for date fields --- catalog/game/models.py | 1 + catalog/music/models.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/catalog/game/models.py b/catalog/game/models.py index b68a3ac7..22d1672c 100644 --- a/catalog/game/models.py +++ b/catalog/game/models.py @@ -102,6 +102,7 @@ class Game(Item): auto_now_add=False, null=True, blank=True, + help_text=_("YYYY-MM-DD"), ) genre = jsondata.ArrayField( diff --git a/catalog/music/models.py b/catalog/music/models.py index fb4a7a28..1d2d7a97 100644 --- a/catalog/music/models.py +++ b/catalog/music/models.py @@ -55,7 +55,9 @@ class Album(Item): "duration", "bandcamp_album_id", ] - release_date = jsondata.DateField(_("发行日期"), null=True, blank=True) + release_date = jsondata.DateField( + _("发行日期"), null=True, blank=True, help_text=_("YYYY-MM-DD") + ) duration = jsondata.IntegerField(_("时长"), null=True, blank=True, help_text=_("毫秒数")) artist = jsondata.ArrayField( models.CharField(blank=True, default="", max_length=200),