Fix Issue #25 : The override of __getitem__ was causing issues with analysis of query sets,

This commit is contained in:
Corey Oordt 2011-09-04 19:56:02 -04:00
parent 9def84b35b
commit e4f3e93848

View file

@ -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):
"""