Skip to content

Commit

Permalink
feat: Refactor 'entidade_da_inspecao' field to use FieldWithOptions
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 FieldWithOptions type instead of SimpleField. This allows for the options to be specified directly on the field, providing more flexibility in managing the available options.
  • Loading branch information
ronaldokun committed Aug 9, 2024
1 parent 58721ef commit 5c5fe53
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": SimpleField(
30, "Entidade da Inspeção:", multiple=True, format_value=True
"entidade_da_inspecao": FieldWithOptions(
30, "Entidade da Inspeção:", multiple=True, format_value=True, options=[]
),
"entidade_outorgada": FieldWithOptions(
138,
Expand Down

0 comments on commit 5c5fe53

Please sign in to comment.