You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
huw_at1
unread,
Jun 4, 2010, 4:26:50 AM6/4/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Ah I solved this now by realising I simply needed to cast the
RawQuerySet as a list.