summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index d3d50d791..256985f50 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -151,9 +151,11 @@ get_operation = get_item(
show_operation = show_item(models.Operation, 'operation')
revert_operation = revert_item(models.Operation)
+show_operationsource = show_item(models.OperationSource, 'operationsource')
get_operationsource = get_item(
models.OperationSource,
'get_operationsource', 'operationsource',
+ bool_fields=['duplicate'],
extra_request_keys={
'operation__towns': 'operation__towns__pk',
'operation__operation_type': 'operation__operation_type__pk',
@@ -166,6 +168,7 @@ get_administrativeactop = get_item(
'operation__towns': 'operation__towns__pk',
'act_type__intented_to': 'act_type__intented_to',
'year': 'signature_date__year',
+ 'act_object': 'act_object__icontains',
'history_creator':
'history_creator__ishtaruser__person__pk',
'operation__towns__numero_insee__startswith':
@@ -180,6 +183,7 @@ get_administrativeact = get_item(
'indexed': 'index__isnull',
'history_creator':
'history_creator__ishtaruser__person__pk',
+ 'act_object': 'act_object__icontains',
'operation__towns__numero_insee__startswith':
'operation__towns__numero_insee__startswith',
'operation__towns': 'operation__towns__pk'},
@@ -211,6 +215,7 @@ wizard_steps = [
('parcels-operation_creation', SelectedParcelFormSet),
('remains-operation_creation', RemainForm),
('periods-operation_creation', PeriodForm),
+ ('relations-operation_creation', RecordRelationsFormSet),
('final-operation_creation', FinalForm)]
if FILES_AVAILABLE:
wizard_steps.insert(0, ('filechoice-operation_creation',
@@ -250,6 +255,7 @@ operation_modification_wizard = OperationModificationWizard.as_view([
('parcelsgeneral-operation_modification', SelectedParcelGeneralFormSet),
('remains-operation_modification', RemainForm),
('periods-operation_modification', PeriodForm),
+ ('relations-operation_modification', RecordRelationsFormSet),
('final-operation_modification', FinalForm)],
label=_(u"Operation modification"),
condition_dict={