diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-27 15:47:32 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-27 15:47:32 +0100 |
commit | d7e1978d8f5358652080f789303f59c3ddf07047 (patch) | |
tree | cb99bb453ae23db575810471c660dda06a98bd77 /archaeological_finds/forms_treatments.py | |
parent | e8880be9e7bd2183766178148083c85c3ee9d9a4 (diff) | |
download | Ishtar-d7e1978d8f5358652080f789303f59c3ddf07047.tar.bz2 Ishtar-d7e1978d8f5358652080f789303f59c3ddf07047.zip |
Allow no resizing of images (by explicit parameter in settings)
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r-- | archaeological_finds/forms_treatments.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index 6dfc028e6..86f00a834 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -38,7 +38,7 @@ from archaeological_operations.forms import AdministrativeActOpeForm, \ from ishtar_common.forms import reverse_lazy, TableSelect, FinalForm, \ ManageOldType, get_form_selection, CustomForm, FieldType, IshtarForm -from ishtar_common.forms_common import SourceSelect +from ishtar_common.forms_common import SourceSelect, get_image_help from ishtar_common import widgets from bootstrap_datepicker.widgets import DatePicker @@ -152,11 +152,7 @@ class BaseTreatmentForm(CustomForm, ManageOldType): insurance_cost = forms.FloatField(label=_(u"Insurance cost ({currency})"), required=False) image = forms.ImageField( - label=_(u"Image"), help_text=mark_safe( - _(u"<p>Heavy images are resized to: %(width)dx%(height)d " - u"(ratio is preserved).</p>") % { - 'width': settings.IMAGE_MAX_SIZE[0], - 'height': settings.IMAGE_MAX_SIZE[1]}), + label=_(u"Image"), help_text=mark_safe(get_image_help()), max_length=255, required=False, widget=widgets.ImageFileInput()) TYPES = [ |