Beispiel #1
0
 def get_object(self, queryset=None):
     return prepare_view.one_joke(self.request, self.kwargs['key'])['joke']
Beispiel #2
0
def one_joke(request, jokeslug):
    context = prepare_view.one_joke(request, jokeslug)
    return render(request, 'obce_one.html', context, context_instance=RequestContext(request))