summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
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
commit05eeada23bd7065bf750e88c4c3125676e9ace92 (patch)
treecb99bb453ae23db575810471c660dda06a98bd77 /archaeological_operations
parent96dab3e5402589d9537df776bbcd7df816ae54f2 (diff)
downloadIshtar-05eeada23bd7065bf750e88c4c3125676e9ace92.tar.bz2
Ishtar-05eeada23bd7065bf750e88c4c3125676e9ace92.zip
Allow no resizing of images (by explicit parameter in settings)
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/forms.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index e0d31bef7..ae9a18862 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -52,7 +52,7 @@ from ishtar_common.forms import FinalForm, FormSet, get_now, \
reverse_lazy, get_form_selection, TableSelect, get_data_from_formset, \
ManageOldType, IshtarForm, CustomForm, FieldType
from ishtar_common.forms_common import TownFormSet, SourceForm, SourceSelect, \
- get_town_field, TownForm
+ get_town_field, TownForm, get_image_help
from archaeological_operations.utils import parse_parcels
@@ -871,11 +871,7 @@ class OperationFormGeneral(CustomForm, ManageOldType):
virtual_operation = forms.BooleanField(required=False,
label=_(u"Virtual operation"))
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())
FILE_FIELDS = [