Hey!
I wanted to select all models, but in random order:
random.shuffle(Obj.objects.all())
This doesn't work, error message:
TypeError: object does not support item assignment
Anyony an idea in how to make it?
(It's for a blogroll, if you wonder where it could be used.)
Greetings :)
Kai
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---