mirror of
https://github.com/jazzband/django-categories.git
synced 2026-05-04 21:54:50 +00:00
Fix Issue #25 : The override of __getitem__ was causing issues with analysis of query sets,
This commit is contained in:
parent
9def84b35b
commit
e4f3e93848
1 changed files with 4 additions and 2 deletions
|
|
@ -50,8 +50,10 @@ class TreeEditorQuerySet(QuerySet):
|
|||
for obj in super(TreeEditorQuerySet, qs).iterator():
|
||||
yield obj
|
||||
|
||||
def __getitem__(self, index):
|
||||
return self # Don't even try to slice
|
||||
# Although slicing isn't nice in a tree, it is used in the deletion action
|
||||
# in the admin changelist. This causes github issue #25
|
||||
# def __getitem__(self, index):
|
||||
# return self # Don't even try to slice
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue