Skip to content

Commit

Permalink
Workaround for issue #2, temporarily disable pagination.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Jul 18, 2013
1 parent 77c6b85 commit 924eab6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Changes in version 0.8.9 (beta release)
-------------------------------------------

* Added workaround for large data sets, temporarily disabled pagination.
NOTE: this issue needs to be looked at in more depth, and is a quick fix only.


Changes in version 0.8.8 (beta release)
-------------------------------------------

Expand Down
5 changes: 5 additions & 0 deletions polymorphic_tree/admin/parentadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class PolymorphicMPTTParentModelAdmin(PolymorphicParentModelAdmin, MPTTModelAdmi
# Config list page:
list_filter = extra_list_filters

# TODO: disable the pagination in the admin, because it doesn't work with the current template code.
# This is a workaround for https://github.com/edoburu/django-polymorphic-tree/issues/2 until
# proper pagination code (or a different JavaScript frontend) is included to deal with the interrupted tree levels.
list_per_page = 10000

EMPTY_ACTION_ICON = u'<span><img src="{static}polymorphic_tree/icons/blank.gif" width="16" height="16" alt=""/></span>'.format(static=settings.STATIC_URL)


Expand Down

0 comments on commit 924eab6

Please sign in to comment.