From 73daa28bb03d5dc109513d5254355cb19a352055 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Fri, 3 Apr 2026 12:20:10 +0200 Subject: [PATCH] fix(wizard): use Person.full_name() instead of non-existent first_name/last_name Person model uses 'imiona' and 'nazwisko' fields, not first_name/last_name. Co-Authored-By: Claude Opus 4.6 (1M context) --- blueprints/admin/routes_company_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/admin/routes_company_wizard.py b/blueprints/admin/routes_company_wizard.py index 05ed4b6..b4cfa3d 100644 --- a/blueprints/admin/routes_company_wizard.py +++ b/blueprints/admin/routes_company_wizard.py @@ -222,7 +222,7 @@ def wizard_step1(): people = db.query(CompanyPerson).filter_by(company_id=company.id).all() response_data['people'] = [ { - 'name': f"{cp.person.first_name} {cp.person.last_name}" if cp.person else '', + 'name': cp.person.full_name() if cp.person else '', 'role': cp.role_in_company or '' } for cp in people if cp.person