I want to make simple pagination of mpttmodel instances. I have this model:
class Thing(MPTTModel):
text = models.TextField()
parent = TreeForeignKey('self', null=True, blank=True, related_name='children')
The problem is, when i trying to retrive objects with offset, like:
Thing.objects.all()[5:10]
{% recursetree things %}
template tag raises exception: Caught AssertionError while rendering: Cannot reorder a query once a slice has been taken.
How to solve it?