diff --git a/customers_mixflowers.by_2025-12-14_20-35-36.xlsx b/customers_mixflowers.by_2025-12-14_20-35-36.xlsx new file mode 100644 index 0000000..44b3e97 Binary files /dev/null and b/customers_mixflowers.by_2025-12-14_20-35-36.xlsx differ diff --git a/myproject/customers/templates/customers/customer_import.html b/myproject/customers/templates/customers/customer_import.html index 49858e2..9f62373 100644 --- a/myproject/customers/templates/customers/customer_import.html +++ b/myproject/customers/templates/customers/customer_import.html @@ -20,10 +20,8 @@

Загрузите CSV или Excel файл со следующими столбцами:

diff --git a/myproject/customers/views.py b/myproject/customers/views.py index b5659b2..1ba03c9 100644 --- a/myproject/customers/views.py +++ b/myproject/customers/views.py @@ -635,10 +635,8 @@ def customer_export(request): writer.writerow([ 'ID', 'Имя', - 'Фамилия', 'Email', 'Телефон', - 'Баланс кошелька', 'Дата создания', ]) @@ -648,11 +646,9 @@ def customer_export(request): for customer in customers: writer.writerow([ customer.id, - customer.first_name or '', - customer.last_name or '', + customer.name or '', customer.email or '', str(customer.phone) if customer.phone else '', - str(customer.wallet_balance), customer.created_at.strftime('%Y-%m-%d %H:%M:%S'), ])