Skip to content

Commit

Permalink
[maykinmedia/objects-api#481] Fix unnecessary "loop" for one element
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 12, 2024
1 parent a757ed4 commit a6dd40c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/objecttypes/setup_configuration/steps/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def execute(self, model: SitesConfigurationModel) -> None:
Site.objects.update_or_create(
domain=item.domain,
defaults={
key: value
for key, value in model_kwargs.items()
if key != "domain"
"name": item.name,
},
)

Expand Down

0 comments on commit a6dd40c

Please sign in to comment.