Fix user picture view with Jinja update

This commit is contained in:
Skia
2017-02-23 00:27:53 +01:00
parent d3514e85f4
commit 5897318cc6
2 changed files with 8 additions and 16 deletions

View File

@ -502,8 +502,8 @@ class UserAccountView(UserAccountBase):
(lambda q: q.amount)
)
kwargs['etickets'] = self.object.customer.buyings.exclude(product__eticket=None).all()
except:
pass
except Exception as e:
print(repr(e))
return kwargs
class UserAccountDetailView(UserAccountBase, YearMixin, MonthMixin):