summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 17:32:57 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 17:32:57 +0200
commit0e97b4834e3877018d61a140f1ec81d9e2215cfa (patch)
treeff1e4357510202200d6fbb505fe3f13c43cffbf2
parentf83bdb58aee1cba40395aaba4d3c399f0016006a (diff)
downloadIshtar-0e97b4834e3877018d61a140f1ec81d9e2215cfa.tar.bz2
Ishtar-0e97b4834e3877018d61a140f1ec81d9e2215cfa.zip
Add full export of context record's sources
-rw-r--r--archaeological_context_records/forms.py3
-rw-r--r--archaeological_context_records/urls.py3
-rw-r--r--ishtar_common/templatetags/window_tables.py5
3 files changed, 8 insertions, 3 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 1a9fc12a6..0683b695f 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -299,4 +299,5 @@ class RecordSourceSelect(SourceSelect):
RecordSourceFormSelection = get_form_selection(
'RecordSourceFormSelection', _(u"Documentation search"), 'pk',
models.ContextRecordSource, RecordSourceSelect, 'get-contextrecordsource',
- _(u"You should select a document."))
+ _(u"You should select a document."),
+ get_full_url='get-contextrecordsource-full')
diff --git a/archaeological_context_records/urls.py b/archaeological_context_records/urls.py
index 509c33064..52af8bda9 100644
--- a/archaeological_context_records/urls.py
+++ b/archaeological_context_records/urls.py
@@ -87,4 +87,7 @@ urlpatterns += patterns(
'show_contextrecordsource', name=models.ContextRecordSource.SHOW_URL),
url(r'get-contexrecordsource/(?P<type>.+)?$',
'get_contextrecordsource', name='get-contextrecordsource'),
+ url(r'get-contexrecordsource-full/(?P<type>.+)?$',
+ 'get_contextrecordsource', name='get-contextrecordsource-full',
+ kwargs={'full': True}),
)
diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py
index 6bed38201..a4801995a 100644
--- a/ishtar_common/templatetags/window_tables.py
+++ b/ishtar_common/templatetags/window_tables.py
@@ -35,8 +35,9 @@ ASSOCIATED_MODELS['context_records'] = (ContextRecord, 'get-contextrecord',
ASSOCIATED_MODELS['context_records_for_ope'] = (
ContextRecord,
'get-contextrecord-for-ope', 'get-contextrecord-full')
-ASSOCIATED_MODELS['context_records_docs'] = (ContextRecordSource,
- 'get-contextrecordsource', '')
+ASSOCIATED_MODELS['context_records_docs'] = (
+ ContextRecordSource,
+ 'get-contextrecordsource', 'get-contextrecordsource-full')
ASSOCIATED_MODELS['finds'] = (Find, 'get-find', 'get-find-full')
ASSOCIATED_MODELS['finds_for_ope'] = (
Find, 'get-find-for-ope', 'get-find-full')