Skip to content

Commit

Permalink
[#293] remove model_dump usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Dec 4, 2024
1 parent 2781208 commit d0decec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/openklant/setup_configuration/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ def execute(self, model: TokenAuthGroupConfigurationModel) -> None:
for model in model.items:
logger.info(f"Configuring {model.identifier}")

model_kwargs = model.model_dump()
model_kwargs = dict(
identifier=model.identifier,
token=model.token,
contact_person=model.contact_person,
email=model.email,
organization=model.organization,
application=model.application,
administration=model.administration,
)

token_instance = TokenAuth(**model_kwargs)

try:
Expand Down

0 comments on commit d0decec

Please sign in to comment.