Beispiel #1
0
 def get_queryset(self):
     return prepare_view.random(self.request, pages=False)['jokes']
Beispiel #2
0
def all_random(request):
    context = prepare_view.random(request)
    return render(request, 'obce_all.html', context, context_instance=RequestContext(request))