summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 17:40:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 17:40:06 +0200
commit775270bef684f4e91b6d14e879dbed0e690fe63a (patch)
treee660183ab8552bb3776d84302fbbbe154f0075ba
parentcc924dbba3c5673395c3385cc09b0ea01875514f (diff)
downloadIshtar-775270bef684f4e91b6d14e879dbed0e690fe63a.tar.bz2
Ishtar-775270bef684f4e91b6d14e879dbed0e690fe63a.zip
Add full export of find's sources
-rw-r--r--archaeological_finds/forms.py3
-rw-r--r--archaeological_finds/urls.py3
-rw-r--r--ishtar_common/templatetags/window_tables.py3
3 files changed, 7 insertions, 2 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index ca2946a21..99907781b 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -402,7 +402,8 @@ class FindSourceSelect(SourceSelect):
FindSourceFormSelection = get_form_selection(
'FindSourceFormSelection', _(u"Documentation search"), 'pk',
models.FindSource, FindSourceSelect, 'get-findsource',
- _(u"You should select a document."))
+ _(u"You should select a document."),
+ get_full_url='get-findsource-full')
class NewFindBasketForm(forms.ModelForm):
diff --git a/archaeological_finds/urls.py b/archaeological_finds/urls.py
index 27a2bdc76..e66743bf4 100644
--- a/archaeological_finds/urls.py
+++ b/archaeological_finds/urls.py
@@ -108,6 +108,9 @@ urlpatterns += patterns(
name='get-find-full', kwargs={'full': True}),
url(r'get-findsource/(?P<type>.+)?$',
'get_findsource', name='get-findsource'),
+ url(r'get-findsource-full/(?P<type>.+)?$',
+ 'get_findsource', name='get-findsource-full',
+ kwargs={'full': True}),
url(r'show-findsource(?:/(?P<pk>.+))?/(?P<type>.+)?$', 'show_findsource',
name=models.FindSource.SHOW_URL),
url(r'show-find/basket-(?P<pk>.+)/(?P<type>.+)?$', 'show_findbasket',
diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py
index a4801995a..6710672e1 100644
--- a/ishtar_common/templatetags/window_tables.py
+++ b/ishtar_common/templatetags/window_tables.py
@@ -41,7 +41,8 @@ ASSOCIATED_MODELS['context_records_docs'] = (
ASSOCIATED_MODELS['finds'] = (Find, 'get-find', 'get-find-full')
ASSOCIATED_MODELS['finds_for_ope'] = (
Find, 'get-find-for-ope', 'get-find-full')
-ASSOCIATED_MODELS['finds_docs'] = (FindSource, 'get-findsource', '')
+ASSOCIATED_MODELS['finds_docs'] = (
+ FindSource, 'get-findsource', 'get-findsource-full')
@register.simple_tag(takes_context=True)