diff options
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index d4453ff5a..95a7ebbaa 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -2005,10 +2005,11 @@ def m2m_historization_changed(sender, **kwargs): obj.save() -def max_size_help(): - msg = str(_("The maximum supported file size is {} Mo.")).format( - settings.MAX_UPLOAD_SIZE - ) +def max_size_help(help_for_doc=False): + max_size = settings.MAX_UPLOAD_SIZE + if help_for_doc: + max_size = '`MAX_UPLOAD_SIZE`' + msg = str(_("The maximum supported file size is {} Mo.")).format(max_size) return msg |