Jacob,

thanks. That does indeed sound easy.

But -- just so I understand -- I would assume that what this does is
fetch all Photos, in random order, then take the first ten and throuw
the rest away (to be garbage-collected). I'd assume the [:10] to be
applied only after everything's been loaded.

But the "order_by('?') " looks like a neat and useful trick to know.

Daniel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to