summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index ba6426cae..e3082c736 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -38,6 +38,7 @@ from archaeological_warehouse.models import Warehouse
import models
from ishtar_common import widgets
+from archaeological_operations.widgets import OAWidget
from ishtar_common.forms import FormSet, FloatField, \
get_form_selection, reverse_lazy, TableSelect, get_now, FinalForm
from ishtar_common.forms_common import get_town_field, SourceSelect
@@ -204,7 +205,10 @@ class FindSelect(TableSelect):
base_finds__context_record__operation__year = forms.IntegerField(
label=_(u"Year"))
base_finds__context_record__operation__code_patriarche = \
- forms.IntegerField(label=_(u"Code PATRIARCHE"))
+ forms.IntegerField(
+ label=_(u"Code PATRIARCHE"),
+ widget=OAWidget
+ )
archaeological_sites = forms.IntegerField(
label=_("Archaelogical site"),
widget=widgets.JQueryAutoComplete(
@@ -448,7 +452,9 @@ class FindSourceSelect(SourceSelect):
forms.IntegerField(label=_(u"Numeric reference"))
if settings.COUNTRY == 'fr':
find__base_finds__context_record__operation__code_patriarche = \
- forms.IntegerField(label="Numéro d'opération (OA Patriarche)")
+ forms.IntegerField(
+ widget=OAWidget,
+ label="Code PATRIARCHE")
find__datings__period = forms.ChoiceField(
label=_(u"Period of the archaelogical find"), choices=[])
find__material_type = forms.ChoiceField(