From 444c7fdb88f116008688bc100ce74792211035d5 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sun, 26 Jul 2026 02:45:04 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Remove=20function=20field=20from=20expor?= =?UTF-8?q?t/import=20=E2=80=94=20not=20on=20Contact=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/import_export_service.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/services/import_export_service.py b/app/services/import_export_service.py index c8372b0..ac3a730 100644 --- a/app/services/import_export_service.py +++ b/app/services/import_export_service.py @@ -162,7 +162,6 @@ async def import_contacts( email_1=row.get("email", "").strip() or None, phone_1=row.get("phone", "").strip() or None, phone_2=row.get("mobile", "").strip() or None, - function=row.get("function", "").strip() or None, created_by=user_id, updated_by=user_id, ) @@ -232,7 +231,7 @@ async def export_contacts_csv( output = io.StringIO() writer = csv.writer(output) writer.writerow( - ["id", "type", "firstname", "surname", "name", "email", "phone", "mobile", "function", "city", "postalcode", "country"] + ["id", "type", "firstname", "surname", "name", "email", "phone", "mobile", "city", "postalcode", "country"] ) for c in contacts: writer.writerow( @@ -245,7 +244,6 @@ async def export_contacts_csv( c.email_1 or "", c.phone_1 or "", c.phone_2 or "", - c.function or "", c.mailing_city or "", c.mailing_postalcode or "", c.mailing_country or "",