summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r--archaeological_context_records/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 4a5267654..72cb24097 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -145,6 +145,8 @@ class RecordFormGeneral(ManageOldType, forms.Form):
thickness = forms.FloatField(label=_(u"Thickness (m)"), required=False)
depth = forms.FloatField(label=_(u"Depth (m)"), required=False)
unit = forms.ChoiceField(label=_("Unit"), required=False, choices=[])
+ has_furniture = forms.NullBooleanField(label=_(u"Has furniture?"),
+ required=False)
location = forms.CharField(
label=_(u"Location"), widget=forms.Textarea,
required=False, validators=[validators.MaxLengthValidator(200)])
@@ -154,7 +156,7 @@ class RecordFormGeneral(ManageOldType, forms.Form):
u"(ratio is preserved).</p>") % {
'width': settings.IMAGE_MAX_SIZE[0],
'height': settings.IMAGE_MAX_SIZE[1]}),
- required=False, widget=widgets.ImageFileInput())
+ max_length=255, required=False, widget=widgets.ImageFileInput())
def __init__(self, *args, **kwargs):
operation = None
@@ -289,8 +291,6 @@ class RecordFormInterpretation(ManageOldType, forms.Form):
datings_comment = forms.CharField(
label=_(u"Comments on dating"), required=False,
widget=forms.Textarea)
- has_furniture = forms.NullBooleanField(label=_(u"Has furniture?"),
- required=False)
filling = forms.CharField(label=_(u"Filling"),
widget=forms.Textarea, required=False)
interpretation = forms.CharField(label=_(u"Interpretation"),