diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-07 18:33:10 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-07 18:33:10 +0200 |
commit | 671c6a16b4cd8aef1279986432dd3adb91f24d3f (patch) | |
tree | 109b1a53bccbbd26b6953b9faee30d8484a14df0 /ishtar_common | |
parent | abaadb9f5dc3188bf9762714bb6756efc474a12d (diff) | |
download | Ishtar-671c6a16b4cd8aef1279986432dd3adb91f24d3f.tar.bz2 Ishtar-671c6a16b4cd8aef1279986432dd3adb91f24d3f.zip |
Display full table o ODT and PDF export (refs #4078)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templatetags/window_tables.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index 0f00cf38f..9d83a554f 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -70,6 +70,7 @@ ASSOCIATED_MODELS['treatmentfiles_docs'] = ( ASSOCIATED_MODELS['containers'] = ( Container, 'get-container', '') + @register.simple_tag(takes_context=True) def dynamic_table_document( context, caption, associated_model, key, value, @@ -107,7 +108,8 @@ def dynamic_table_document( request = context['request'] if source_attrs and source_attrs.startswith('?'): source_attrs = source_attrs[1:] - dct = {} + # force to not paginate up to 100000 - should be enough + dct = {'length': 100000} for attr in source_attrs.split('&'): if '=' in attr: key, val = attr.split('=') |