summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-05 14:34:12 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-05 14:34:12 +0200
commit664cab418cda08d1e133d4d30b70332a893375af (patch)
treef6cfdf2c4e3630507ee3877e99f4edf8d18c2648 /archaeological_operations/forms.py
parent9388be1bc4be2470a5601d1b683c8c26bde984aa (diff)
downloadIshtar-664cab418cda08d1e133d4d30b70332a893375af.tar.bz2
Ishtar-664cab418cda08d1e133d4d30b70332a893375af.zip
Site search: areas criteria
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index c4c61a748..26ded30fa 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -1310,6 +1310,7 @@ class SiteSelect(HistorySelect):
periods = forms.ChoiceField(label=_(u"Periods"), choices=[], required=False)
remains = forms.ChoiceField(label=_(u"Remains"), choices=[], required=False)
towns = get_town_field()
+ towns__areas = forms.ChoiceField(label=_("Areas"), choices=[])
comment = forms.CharField(label=_(u"Comment"), max_length=200,
required=False)
top_operation = forms.IntegerField(
@@ -1351,6 +1352,7 @@ class SiteSelect(HistorySelect):
TYPES = [
FieldType('periods', models.Period),
FieldType('remains', models.RemainType),
+ FieldType('towns__areas', Area),
]
def __init__(self, *args, **kwargs):