Ah I solved this now by realising I simply needed to cast the
RawQuerySet as a list.

On Jun 2, 7:52 am, huw_at1 <huwdjo...@gmail.com> wrote:
> Hi all,
>
> I'm trying to use Djangos new Raw feature to run a custom SQL and
> return back a list of objects. This works fine however I then want to
> paginate to present the results as a list. The RawQuerySet has no
> length value it seems to be able to paginate. Is there a recognised
> way of achieving this? Do I also need to run a "SELECT COUNT(*)" or
> should I look at writing my own pagination?
>
> Many thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to