summaryrefslogtreecommitdiff
path: root/archaeological_context_records/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2016-01-10 15:35:51 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2016-01-10 15:35:51 +0100
commit11d7e76203e13a6d4c2a0c9aa29bd2d1dd86f5b6 (patch)
tree8d8e7c09faf179b2fed07878d1cf450a245a78d0 /archaeological_context_records/views.py
parent19fcd922361b045894c0eeb56e095d785299909e (diff)
parent2c063aace94e5a9f3b5dc596e4a502ef062db059 (diff)
downloadIshtar-11d7e76203e13a6d4c2a0c9aa29bd2d1dd86f5b6.tar.bz2
Ishtar-11d7e76203e13a6d4c2a0c9aa29bd2d1dd86f5b6.zip
Merge branch 'master' into master-land-planner-2999
Diffstat (limited to 'archaeological_context_records/views.py')
-rw-r--r--archaeological_context_records/views.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archaeological_context_records/views.py b/archaeological_context_records/views.py
index cbf34ee07..13375f866 100644
--- a/archaeological_context_records/views.py
+++ b/archaeological_context_records/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -51,9 +51,14 @@ get_contextrecord_for_ope = get_item(
'get_contextrecord', 'contextrecord',
extra_request_keys=contextrecord_extra_keys,
own_table_cols=models.ContextRecord.TABLE_COLS_FOR_OPE)
+
+show_contextrecordsource = show_item(models.ContextRecordSource,
+ 'contextrecordsource')
+
get_contextrecordsource = get_item(
models.ContextRecordSource,
'get_contextrecordsource', 'contextrecordsource',
+ bool_fields=['duplicate'],
extra_request_keys={
'context_record__parcel__town': 'context_record__parcel__town__pk',
'context_record__operation__year': 'context_record__operation__year',
@@ -73,6 +78,7 @@ record_creation_wizard = RecordWizard.as_view([
('general-record_creation', RecordFormGeneral),
('datings-record_creation', DatingFormSet),
('interpretation-record_creation', RecordFormInterpretation),
+ ('relations-record_creation', RecordRelationsFormSet),
('final-record_creation', FinalForm)],
label=_(u"New context record"),
url_name='record_creation',)
@@ -82,6 +88,7 @@ record_modification_wizard = RecordModifWizard.as_view([
('general-record_modification', RecordFormGeneral),
('datings-record_modification', DatingFormSet),
('interpretation-record_modification', RecordFormInterpretation),
+ ('relations-record_creation', RecordRelationsFormSet),
('final-record_modification', FinalForm)],
label=_(u"Context record modification"),
url_name='record_modification',)