summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-11-26 19:40:48 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-11-26 19:40:48 +0100
commit2ce97f3759688bf17b9a1933eea5d5f31412a8ab (patch)
treef216516822990fe52e7acefc9a10688d818dcf9c /archaeological_finds/views.py
parent28a6384b57edbbe5b5326637d3eb5b9292f2429e (diff)
downloadIshtar-2ce97f3759688bf17b9a1933eea5d5f31412a8ab.tar.bz2
Ishtar-2ce97f3759688bf17b9a1933eea5d5f31412a8ab.zip
Finds fields - change and add: preservation to consider, integrity, batch
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py7
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([