From 735b875f0b39c80b819d2c3680789182693d0c72 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 12 Jun 2025 15:34:36 +0300 Subject: [PATCH] new --- .../templates/details_templates/customer-details.html | 3 ++- osinaweb/osinacore/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/osinaweb/osinacore/templates/details_templates/customer-details.html b/osinaweb/osinacore/templates/details_templates/customer-details.html index 4b1c7dd8..74f2de96 100644 --- a/osinaweb/osinacore/templates/details_templates/customer-details.html +++ b/osinaweb/osinacore/templates/details_templates/customer-details.html @@ -386,6 +386,7 @@ {% for order in customer_orders %} +

{{order.order_id}}

@@ -408,7 +409,7 @@

${{order.remaining_balance}}

- +
{% endfor %} diff --git a/osinaweb/osinacore/views.py b/osinaweb/osinacore/views.py index fb1822b3..fbf21018 100644 --- a/osinaweb/osinacore/views.py +++ b/osinaweb/osinacore/views.py @@ -241,7 +241,7 @@ def user_recent_activities_modal(request, user_id): @staff_login_required def customers(request, *args, **kwargs): - customers = CustomerProfile.objects.all().order_by('-customer_id') + customers = CustomerProfile.objects.all().order_by('-user__first_name') context = { 'customers' : customers,