diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-22 13:51:30 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-22 13:51:30 +0200 |
| commit | cd1b777d6e95d1895780b414870ec27358ac0dd3 (patch) | |
| tree | 904c5114a778b5d2bdeb688f842ef084caed4f97 /archaeological_context_records/forms.py | |
| parent | 950cfb19a1c809e9d5e777c2750b3dd3f39bbf9f (diff) | |
| parent | 480fa4f7e9a0ca6fed3b1f444807734d854de2b0 (diff) | |
| download | Ishtar-cd1b777d6e95d1895780b414870ec27358ac0dd3.tar.bz2 Ishtar-cd1b777d6e95d1895780b414870ec27358ac0dd3.zip | |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_context_records/forms.py')
| -rw-r--r-- | archaeological_context_records/forms.py | 6 |
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"), |
