From 2c991b591cea0c78934fe300e36a79db1f158a96 Mon Sep 17 00:00:00 2001 From: Tinashe <70011086+tinashechiraya@users.noreply.github.com> Date: Tue, 5 Mar 2024 09:39:15 +0200 Subject: [PATCH] patch: add missing comma on row --- django_project/monitor/admin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/django_project/monitor/admin.py b/django_project/monitor/admin.py index e9c625c34..13d259ee2 100644 --- a/django_project/monitor/admin.py +++ b/django_project/monitor/admin.py @@ -126,13 +126,15 @@ def download_records(self, request, queryset): user_organization_name = "N/A" user_country = "N/A" user_is_expert = False + + obs_date_str = obs.obs_date.strftime('%Y-%m-%d') writer.writerow( [ smart_str(obs.user.username), smart_str(user_organization_name), smart_str(user_country), smart_str(user_is_expert), - smart_str(obs.obs_date), + smart_str(obs_date_str), smart_str(obs.site.site_name), smart_str(obs.site.river_name), smart_str(obs.site.river_cat), @@ -218,9 +220,9 @@ def download_selected_sites(self, request, queryset): 'Site Location', 'Created By', 'User Organization Name', - 'User Expert Status' + 'User Expert Status', 'User Country', - 'Site Created On' + 'Site Creation Date' ]) for site in queryset: