More readable user_account

This commit is contained in:
2016-10-19 01:57:54 +02:00
parent 029bc7cc7c
commit 224374f5e8
3 changed files with 10 additions and 11 deletions

View File

@ -1025,7 +1025,6 @@ class EticketPDFView(CanViewMixin, DetailView):
self.object = self.get_object()
eticket = self.object.product.eticket
user = self.object.customer.user
print(self.object)
code = "%s %s %s %s" % (self.object.customer.user.id, self.object.product.id, self.object.id, self.object.quantity)
code += " " + eticket.get_hash(code)[:8].upper()
response = HttpResponse(content_type='application/pdf')