Add help text and trans

This commit is contained in:
cuom1999 2022-06-02 00:20:45 -05:00
parent a1bcc2cb46
commit 8ba39a1f97
6 changed files with 85 additions and 22 deletions

View file

@ -106,10 +106,16 @@ class ProblemData(models.Model):
validators=[FileExtensionValidator(allowed_extensions=["cpp"])],
)
fileio_input = models.TextField(
verbose_name=_("input file name"), blank=True, null=True
verbose_name=_("input file name"),
blank=True,
null=True,
help_text=_("Leave empty for stdin"),
)
fileio_output = models.TextField(
verbose_name=_("output file name"), blank=True, null=True
verbose_name=_("output file name"),
blank=True,
null=True,
help_text=_("Leave empty for stdout"),
)
__original_zipfile = None