Pass correct key email

This commit is contained in:
PCoder 2019-04-12 09:10:19 +02:00
parent c232f4c1da
commit fefcdb5647

View file

@ -1176,7 +1176,7 @@ class InvoiceListView(LoginRequiredMixin, ListView):
"user_email = {}".format(user_email)
)
try:
cu = CustomUser.objects.get(user_email)
cu = CustomUser.objects.get(email=user_email)
except CustomUser.DoesNotExist as dne:
logger.debug("User does not exist")
cu = self.request.user