I'm getting an error on this line:
page = self.active().filter(_cached_url__in=paths).extra(
select={'_url_length': 'LENGTH(_cached_url)'}
).order_by('-_url_length')[0]
It should be able to be solved by moving to use the length aggregation.
Happy to do some investigation into this.
I'm getting an error on this line:
It should be able to be solved by moving to use the length aggregation.
Happy to do some investigation into this.