diff options
-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('=') |