update the labels

This commit is contained in:
Ali Asadi 2026-06-13 16:37:27 +03:30
parent f5a68ccaee
commit d806136b3f
2 changed files with 28 additions and 28 deletions

View file

@ -4,23 +4,23 @@ TICKET_STATE_LABELS = {
} }
USERS_COLUMNS = [ USERS_COLUMNS = [
{"key": "user_uuid", "label": "User UUID"}, {"key": "user_uuid", "label": "accounts_uuid"},
{"key": "username", "label": "Username"}, {"key": "username", "label": "accounts_username"},
{"key": "first_name", "label": "First Name"}, {"key": "first_name", "label": "accounts_first_name"},
{"key": "last_name", "label": "Last Name"}, {"key": "last_name", "label": "accounts_last_name"},
{"key": "email", "label": "Email"}, {"key": "email", "label": "accounts_email"},
{"key": "phone_number", "label": "Phone Number"}, {"key": "phone_number", "label": "accounts_phone_number"},
{"key": "address", "label": "Address"}, {"key": "address", "label": "accounts_address"},
] ]
TICKETS_COLUMNS = [ TICKETS_COLUMNS = [
{"key": "ticket_uuid", "label": "Ticket UUID"}, {"key": "ticket_uuid", "label": "advertising_uuid"},
{"key": "user_uuid", "label": "User UUID"}, {"key": "user_uuid", "label": "advertising_user"},
{"key": "title", "label": "Title"}, {"key": "title", "label": "advertising_title"},
{"key": "description", "label": "Description"}, {"key": "description", "label": "advertising_description"},
{"key": "state", "label": "State"}, {"key": "state", "label": "advertising_state"},
{"key": "created_at", "label": "Created At"}, {"key": "created_at", "label": "advertising_created_at"},
{"key": "updated_at", "label": "Updated At"}, {"key": "updated_at", "label": "advertising_updated_at"},
] ]

View file

@ -67,13 +67,13 @@ class GenerateReportTests(APITestCase):
self.assertEqual( self.assertEqual(
[cell.value for cell in users_sheet[2]], [cell.value for cell in users_sheet[2]],
[ [
"User UUID", "accounts_uuid",
"Username", "accounts_username",
"First Name", "accounts_first_name",
"Last Name", "accounts_last_name",
"Email", "accounts_email",
"Phone Number", "accounts_phone_number",
"Address", "accounts_address",
], ],
) )
self.assertEqual( self.assertEqual(
@ -97,13 +97,13 @@ class GenerateReportTests(APITestCase):
self.assertEqual( self.assertEqual(
[cell.value for cell in tickets_sheet[2]], [cell.value for cell in tickets_sheet[2]],
[ [
"Ticket UUID", "advertising_uuid",
"User UUID", "advertising_user",
"Title", "advertising_title",
"Description", "advertising_description",
"State", "advertising_state",
"Created At", "advertising_created_at",
"Updated At", "advertising_updated_at",
], ],
) )
self.assertEqual( self.assertEqual(