diff --git a/.gitignore b/.gitignore index 8bd4f593d..f8f4416f7 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ static/ *.mo *.html.py *.txt.py +pyenv/ \ No newline at end of file diff --git a/inventory/views/item_loan.py b/inventory/views/item_loan.py index 7be76b2c1..69cc20592 100644 --- a/inventory/views/item_loan.py +++ b/inventory/views/item_loan.py @@ -44,7 +44,7 @@ def get_queryset(self): # Additionally filter by the name of the applicant if name_filter: - applications = applications.filter(contact_name__contains=name_filter) + applications = applications.filter(contact_name__icontains=name_filter) return applications.order_by("loan_to") @@ -156,7 +156,7 @@ def get_initial(self, *args, **kwargs): user = self.request.user if user and user.is_authenticated: initial_form = { - "contact_name": "{} {}".format(user.first_name, user.last_name), + "contact_name": "{} {}".format(user.first_name, user.last_name), # her "contact_email": user.email, }