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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -