From a2413db65d4bb333f14ea5f7e32a0a6b9fb75580 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 29 Apr 2022 14:45:12 +0200 Subject: [PATCH] Small tweaks to new customer fields --- src/pretix/control/forms/filter.py | 2 ++ .../control/templates/pretixcontrol/organizers/customer.html | 2 +- .../control/templates/pretixcontrol/organizers/customers.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pretix/control/forms/filter.py b/src/pretix/control/forms/filter.py index b61012ba55..5474376efe 100644 --- a/src/pretix/control/forms/filter.py +++ b/src/pretix/control/forms/filter.py @@ -1310,6 +1310,8 @@ class CustomerFilterForm(FilterForm): Q(email__icontains=query) | Q(name_cached__icontains=query) | Q(identifier__istartswith=query) + | Q(external_identifier__icontains=query) + | Q(notes__icontains=query) ) if fdata.get('status') == 'active': diff --git a/src/pretix/control/templates/pretixcontrol/organizers/customer.html b/src/pretix/control/templates/pretixcontrol/organizers/customer.html index c19ea15eef..17b68a1ffc 100644 --- a/src/pretix/control/templates/pretixcontrol/organizers/customer.html +++ b/src/pretix/control/templates/pretixcontrol/organizers/customer.html @@ -65,7 +65,7 @@ –{% endif %} {% if customer.notes %}
{% trans "Notes" %}
-
{{ customer.notes }}
+
{{ customer.notes|linebreaks }}
{% endif %} diff --git a/src/pretix/control/templates/pretixcontrol/organizers/customers.html b/src/pretix/control/templates/pretixcontrol/organizers/customers.html index b7803845fa..3bba675fcb 100644 --- a/src/pretix/control/templates/pretixcontrol/organizers/customers.html +++ b/src/pretix/control/templates/pretixcontrol/organizers/customers.html @@ -62,7 +62,7 @@ {% trans "Name" %} - {% trans "External ID" %} + {% trans "External identifier" %}