Skip to content

Commit

Permalink
feat: Refactor 'entidade_da_inspecao' field to use SimpleField
Browse files Browse the repository at this point in the history
This change refactors the 'entidade_da_inspecao' field in the FIELDS dictionary to use the SimpleField type instead of FieldWithOptions. This simplifies the field by removing the options, as the entidade_da_inspecao field is already set to multiple=True, allowing for multiple values to be entered.
  • Loading branch information
ronaldokun committed Aug 9, 2024
1 parent 8aea5f4 commit ba66d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiscaliza/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"Não": ["nome_da_entidade", "cnpjcpf_da_entidade"],
},
),
"entidade_da_inspecao": FieldWithOptions(
30, "Entidade da Inspeção:", multiple=True, options=[]
"entidade_da_inspecao": SimpleField(
30, "Entidade da Inspeção:", multiple=True, format_value=True
),
"entidade_outorgada": FieldWithOptions(
138,
Expand Down

0 comments on commit ba66d70

Please sign in to comment.