Skip to content

Commit

Permalink
♻️ set attribute options for 'fiscais' and 'fiscal_responsável'
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldokun committed Jul 1, 2024
1 parent a4be64c commit 4181edc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiscaliza/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def editable_fields(self) -> dict:
for key, field in FIELDS.items():
if key in self.attrs:
setattr(field, "value", self.attrs[key])
if key in ["fiscais", "fiscal_responsavel"]:
setattr(field, "options", self.attrs["MEMBROS"])
editable_fields[key] = field
return editable_fields

Expand Down

0 comments on commit 4181edc

Please sign in to comment.