add help text for date fields

This commit is contained in:
Your Name 2024-01-20 23:40:47 -05:00 committed by Henri Dickson
parent 1c1516d875
commit e07869e2b7
2 changed files with 4 additions and 1 deletions

View file

@ -102,6 +102,7 @@ class Game(Item):
auto_now_add=False,
null=True,
blank=True,
help_text=_("YYYY-MM-DD"),
)
genre = jsondata.ArrayField(

View file

@ -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),