Skip to content

Commit 924eab6

Browse files
committed
Workaround for issue django-polymorphic#2, temporarily disable pagination.
1 parent 77c6b85 commit 924eab6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Changes in version 0.8.9 (beta release)
2+
-------------------------------------------
3+
4+
* Added workaround for large data sets, temporarily disabled pagination.
5+
NOTE: this issue needs to be looked at in more depth, and is a quick fix only.
6+
7+
18
Changes in version 0.8.8 (beta release)
29
-------------------------------------------
310

polymorphic_tree/admin/parentadmin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ class PolymorphicMPTTParentModelAdmin(PolymorphicParentModelAdmin, MPTTModelAdmi
5454
# Config list page:
5555
list_filter = extra_list_filters
5656

57+
# TODO: disable the pagination in the admin, because it doesn't work with the current template code.
58+
# This is a workaround for https://github.com/edoburu/django-polymorphic-tree/issues/2 until
59+
# proper pagination code (or a different JavaScript frontend) is included to deal with the interrupted tree levels.
60+
list_per_page = 10000
61+
5762
EMPTY_ACTION_ICON = u'<span><img src="{static}polymorphic_tree/icons/blank.gif" width="16" height="16" alt=""/></span>'.format(static=settings.STATIC_URL)
5863

5964

0 commit comments

Comments
 (0)