wagtail / wagtail-transfer

Content transfer for Wagtail

Home Page:https://wagtail.github.io/wagtail-transfer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page pagination returns a 500

KalobTaulien opened this issue · comments

The proxy page that's trying to be fetched is:
http://localhost:8000/wagtail-transfer/api/chooser-proxy/staging/?child_of=2&fields=parent%2Cchildren&limit=20&offset=20

If &offset=0 (zero) then it returns the standard 20 Pages per page.

I may have time to look into this further but I wanted to make sure this was logged somewhere.

Found the culprit. May end up throwing the fix into #38

queryset = queryset.exclude(depth=1).specific()