diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-01 15:58:39 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-02 13:30:50 +0200 |
| commit | 205ad98138447af4b86cd11d38c3c382ea1656cd (patch) | |
| tree | 221ada912a6f6f74cfd4699b30bd0a2488b4a586 /archaeological_finds/forms.py | |
| parent | 986d6c2c372df1bf1962533e4a24080da4d79c8a (diff) | |
| download | Ishtar-205ad98138447af4b86cd11d38c3c382ea1656cd.tar.bz2 Ishtar-205ad98138447af4b86cd11d38c3c382ea1656cd.zip | |
♻ refactor dating fields searches
Diffstat (limited to 'archaeological_finds/forms.py')
| -rw-r--r-- | archaeological_finds/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index d4f954d59..727657fc2 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -92,7 +92,7 @@ from ishtar_common.forms import ( GeoItemSelect, ) from ishtar_common.forms_common import get_town_field -from archaeological_context_records.forms import PeriodSelect +from archaeological_context_records.forms import DatingSelect from ishtar_common.models import ( Area, @@ -1616,7 +1616,7 @@ class DateForm(ManageOldType, forms.Form): ] -class FindSelect(MuseumForm, GeoItemSelect, PeriodSelect): +class FindSelect(MuseumForm, GeoItemSelect, DatingSelect): _model = models.Find form_admin_name = _("Find - 001 - Search") form_slug = "find-001-search" @@ -2017,7 +2017,7 @@ class FindSelect(MuseumForm, GeoItemSelect, PeriodSelect): museum_allocation_date = DateField(label=_("Museum - Date of allocation")) museum_purchase_price = forms.CharField(label=_("Museum - Purchase price")) - TYPES = PeriodSelect.TYPES + [ + TYPES = DatingSelect.TYPES + [ FieldType("periods", Period), FieldType("conservatory_states", models.ConservatoryState), FieldType("base_finds__batch", models.BatchType), |
