On 19/03/2013 3:29pm, Christophe Pettus wrote:
On Mar 18, 2013, at 9:03 PM, Mike Dewhirst wrote:
No really, I want a maximum of ten random records from the database
(Django 1.4, Postgres 9.1).
This is a case where the raw SQL interface might be the right answer:
you can just tack an ORDER BY random() clause onto the query.
Thank you kind sir
Cheers
Mike
-- -- Christophe Pettus x...@thebuild.com
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.