diff options
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r-- | archaeological_finds/views.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 4d8b3af5e..40c241cb1 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -48,19 +48,17 @@ find_extra_keys = { 'datings__period': 'datings__period__pk', 'base_finds__find__description': 'base_finds__find__description__icontains', - 'base_finds__is_isolated': 'base_finds__is_isolated', + 'base_finds__batch': 'base_finds__batch', 'image': 'image__isnull'} get_find = get_item( models.Find, 'get_find', 'find', - bool_fields=['base_finds__is_isolated'], reversed_bool_fields=['image__isnull'], base_request={'downstream_treatment__isnull': True}, extra_request_keys=find_extra_keys) get_find_for_ope = get_item( models.Find, 'get_find', 'find', - bool_fields=['base_finds__is_isolated'], reversed_bool_fields=['image__isnull'], base_request={'downstream_treatment__isnull': True}, extra_request_keys=find_extra_keys, @@ -132,6 +130,9 @@ find_source_deletion_wizard = FindSourceDeletionWizard.as_view([ autocomplete_objecttype = get_autocomplete_generic(models.ObjectType) autocomplete_materialtype = get_autocomplete_generic(models.MaterialType) +autocomplete_preservationtype = get_autocomplete_generic( + models.PreservationType) +autocomplete_integritytype = get_autocomplete_generic(models.IntegrityType) """ treatment_creation_wizard = TreatmentWizard.as_view([ |