Virgil Dupras  committed 1b2f31c

Fixed topic search results which returned nothing.

Return a list instead of a generator in TopicFromPostResult.__getitem__() so that the pagination can work correctly.

  • Participants
  • Parent commits 70805f2
  • Branches stable

Comments (0)

Files changed (1)

File djangobb_forum/

     def __getitem__(self, key):
         if isinstance(key, slice):
-            return (self.posts[i].object.topic
-                        for i in xrange(*key.indices(len(self))))
+            return [self.posts[i].object.topic
+                        for i in xrange(*key.indices(len(self)))]
         elif isinstance(key, int):
             return self.posts[key].object.topic