diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-16 20:09:34 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-16 20:09:34 +0100 |
commit | 12f422fd95e3b5d6228f220c67ae2a203898007c (patch) | |
tree | 75b2bf05b5896ce960165a28b9b23b4f18a593c0 /ishtar_common/utils.py | |
parent | 696671dea6b284eea36affd473d9f036de4db71f (diff) | |
download | Ishtar-12f422fd95e3b5d6228f220c67ae2a203898007c.tar.bz2 Ishtar-12f422fd95e3b5d6228f220c67ae2a203898007c.zip |
Indication of the maximum file size in help for file fields
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index cbc7d069d..562992bdb 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -958,3 +958,10 @@ def m2m_historization_changed(sender, **kwargs): elif not obj.history_modifier: obj.skip_history_when_saving = True obj.save() + + +def max_size_help(): + msg = unicode(_(u"The maximum supported file size is {} Mo.")).format( + settings.MAX_UPLOAD_SIZE + ) + return msg |