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, },