From 95739c815a9035943ca20b5ace07284d6f49e05a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Jun 2019 14:34:12 +0200 Subject: Site search: areas criteria --- archaeological_operations/forms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_operations/forms.py') 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): -- cgit v1.2.3