Pass correct key email
This commit is contained in:
parent
c232f4c1da
commit
fefcdb5647
1 changed files with 1 additions and 1 deletions
|
@ -1176,7 +1176,7 @@ class InvoiceListView(LoginRequiredMixin, ListView):
|
||||||
"user_email = {}".format(user_email)
|
"user_email = {}".format(user_email)
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
cu = CustomUser.objects.get(user_email)
|
cu = CustomUser.objects.get(email=user_email)
|
||||||
except CustomUser.DoesNotExist as dne:
|
except CustomUser.DoesNotExist as dne:
|
||||||
logger.debug("User does not exist")
|
logger.debug("User does not exist")
|
||||||
cu = self.request.user
|
cu = self.request.user
|
||||||
|
|
Loading…
Reference in a new issue