From 3c16c5f66ad1df47826d5bc65e205b0a32707b6d Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 18 Nov 2024 08:35:16 +0100 Subject: [PATCH] add count of --- .../pretixpresale/organizers/customer_profile.html | 10 +++++----- src/pretix/presale/views/customer.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html b/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html index 551004c9a4..6cfcf2ff31 100644 --- a/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html +++ b/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html @@ -50,16 +50,16 @@
@@ -224,7 +224,7 @@ - {% for ap in customer.attendee_profiles.all %} + {% for ap in attendee_profiles %} {{ ap.describe|linebreaksbr }} diff --git a/src/pretix/presale/views/customer.py b/src/pretix/presale/views/customer.py index 8ec30e025f..c9c29c7bc4 100644 --- a/src/pretix/presale/views/customer.py +++ b/src/pretix/presale/views/customer.py @@ -374,6 +374,7 @@ class ProfileView(CustomerRequiredMixin, ListView): 'membership_type', 'granted_in', 'granted_in__order', 'granted_in__order__event' ) ctx['invoice_addresses'] = InvoiceAddress.profiles.filter(customer=self.request.customer) + ctx['attendee_profiles'] = self.request.customer.attendee_profiles.all() ctx['is_paginated'] = True for m in ctx['memberships']: