django templates - how to render tenjin_template in django1.6 -
here view renders tenjin_template in django. gives me error
init() takes 1 argument (2 given)
here code
def get(self, request): voucher_request = voucher.objects.all() context = requestcontext(request, { 'voucher_request': voucher_request, }) return self.tenjin_response("billing/voucher.html", context)
i got answer of above question:
def get(self,*args, **kwargs): voucher_request = voucher.objects.all() if voucher_request == manage_raise: return self.permission_exception() context = { 'voucher_request': voucher.objects.all(), } return self.tenjin_response("billing/voucher.html", context)
Comments
Post a Comment