Esempio n. 1
0
    def get(self, request, video_id):
        video = get_object_or_404(Video, pk=video_id)
        user = client_auth(request)
        comments = Comment.objects.filter(video=video,
                                          status=True).order_by('-id')

        data = {'video': video, 'user': user, 'comments': comments}
        return render_to_response(request, self.TEMPLATE, data=data)
Esempio n. 2
0
    def get(self, request):

        user = client_auth(request)
        data = {'user': user}
        return render_to_response(request, self.TEMPLATE, data=data)