From d12dd6d2d871e23175d38bb86b8a0dc333776a22 Mon Sep 17 00:00:00 2001 From: Eduard0803 Date: Thu, 23 Nov 2023 13:27:58 -0300 Subject: [PATCH] add cpf formatting --- gestao/web/api/document/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestao/web/api/document/utils.py b/gestao/web/api/document/utils.py index c123610..f050d47 100644 --- a/gestao/web/api/document/utils.py +++ b/gestao/web/api/document/utils.py @@ -29,7 +29,7 @@ def generate_affiliation_file(user: User): docx_replace( doc, **{ - "cpf": user.cpf, + "cpf": user.cpf[:3] + '.' + user.cpf[3:6] + '.' + user.cpf[6:9] + '-' + user.cpf[9:], "name": user.name, "date": date_string, },