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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 72cb24097..0452243e2 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -66,13 +66,13 @@ class RecordSelect(TableSelect):
operation__operation_code = forms.IntegerField(
label=_(u"Operation's number (index by year)"))
archaeological_sites = forms.IntegerField(
- label=_("Archaelogical site"),
+ label=_("Archaeological site"),
widget=widgets.JQueryAutoComplete(
reverse_lazy('autocomplete-archaeologicalsite'),
associated_model=ArchaeologicalSite),
validators=[valid_id(ArchaeologicalSite)])
ope_relation_types = forms.MultipleChoiceField(
- label=_(u"Search within operation relations"), choices=[],
+ label=_(u"Search within related operations"), choices=[],
widget=forms.CheckboxSelectMultiple)
datings__period = forms.ChoiceField(label=_(u"Period"), choices=[])
unit = forms.ChoiceField(label=_(u"Unit type"), choices=[])
@@ -159,6 +159,7 @@ class RecordFormGeneral(ManageOldType, forms.Form):
max_length=255, required=False, widget=widgets.ImageFileInput())
def __init__(self, *args, **kwargs):
+ # TODO: simplify
operation = None
if 'data' in kwargs and kwargs['data'] and \
('operation' in kwargs['data'] or