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
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
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
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
4 matches
Mail list logo