Alessandro Ronchi napsal(a): > 2007/10/1, Tomas Kopecek <[EMAIL PROTECTED]>: > >> items = shuffle(items) > > > If I do that I get > > Exception Type: TypeError > Exception Value: object doesn't support item assignment > Oh, sorry, I forget that it works in place. It means you have to do this:
items = list(items) shuffle(items) > The '?' works If I put it on objects.all.order_by('?') instead objects.all > Now, I don't understand. What is the difference between these two cases? -- Tomas Kopecek e-mail: permonik at mesias.brnonet.cz ICQ: 114483784 --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---