diff --git a/hosting/views.py b/hosting/views.py index 6f41eaa8..f6114ffd 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -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