Re: random queryset, how to

2008-11-02 Thread Steve Holden
AvK wrote: > hi, > i want to get random records form the database, the queryset looks > like this : > " > PS: You asked this question at 11:44, then again at 11:45 and yet again at 12:25. Please have a little patience! regards Steve --~--~-~--~~~---~--~~ You

Re: random queryset, how to

2008-11-02 Thread Steve Holden
AvK wrote: > hi, > i want to get random records form the database, the queryset looks > like this : > " > questions = Question.objects.filter(quiz__pk=quiz_id).order_by('?') > [:10] > > " > the problem is that if i want to use questions variable again, it > everytimes changes the returned record

random queryset how to

2008-11-02 Thread AvK
hi, i want to get random records form the database, the queryset looks like this : " questions = Question.objects.filter(quiz__pk=quiz_id).order_by('?') [:10] " the problem is that if i want to use questions variable again, it everytimes changes the returned records from db for a new random an

random queryset, how to

2008-11-02 Thread AvK
hi, i want to get random records form the database, the queryset looks like this : " questions = Question.objects.filter(quiz__pk=quiz_id).order_by('?') [:10] " the problem is that if i want to use questions variable again, it everytimes changes the returned records from db for a new random and