diff options
author | Cefin <kevon@tuta.io> | 2021-10-12 11:08:47 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | 67ebba6c5a6a2da19614e0e15105e16828e3ae1d (patch) | |
tree | d98f58022c24720a49afa8a15140edeee7d54c58 /archaeological_finds/forms.py | |
parent | 17b5674724cc03bea4399d1cc9371d135f797eaa (diff) | |
download | Ishtar-67ebba6c5a6a2da19614e0e15105e16828e3ae1d.tar.bz2 Ishtar-67ebba6c5a6a2da19614e0e15105e16828e3ae1d.zip |
code review on FindSelect Finds
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index f61bc5f35..a99d6fed4 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -977,6 +977,7 @@ class FindSelect(DocumentItemSelect, PeriodSelect): "base_finds__context_record__operation__person_in_charge", "base_finds__context_record__operation__common_name" "base_finds__context_record__operation__operator", + "base_finds__context_record__operation__address", "base_finds__context_record__town__areas", "archaeological_sites", "archaeological_sites_context_record", @@ -1015,20 +1016,23 @@ class FindSelect(DocumentItemSelect, PeriodSelect): label=_("Full text search"), widget=widgets.SearchWidget( 'archaeological-finds', 'find' )) - address = forms.CharField(label=_("Address")) + base_finds__context_record__operation__address = forms.CharField(label=_("Address")) base_finds__context_record__operation__person_in_charge = forms.IntegerField( label=_("Person in charge"), widget=widgets.JQueryAutoComplete( reverse_lazy("autocomplete-person") - ), + ) ) base_finds__context_record__operation__operator = forms.IntegerField( label=_("Operator"), widget=widgets.JQueryAutoComplete( reverse_lazy("autocomplete-organization") - ), + ) + ) + base_finds__context_record__operation__common_name = forms.CharField( + label=_("Operation name"), + max_length=30 ) - base_finds__context_record__operation__common_name = forms.CharField(label=_("Operation name")) label = forms.CharField(label=_("Free ID")) denomination = forms.CharField(label=_("Denomination")) previous_id = forms.CharField(label=_("Previous ID")) |