Skip to content

Commit

Permalink
fix: migration defaulting to hardcoded eshipper for carrier_name
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Aug 29, 2024
1 parent b4a32b8 commit 96b641d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def forwards_func(apps, schema_editor):
for name, model in MODELS.items()
if hasattr(_carrier, model.__name__.lower())
),
("eshipper", _carrier.metadata.get("__settings", {})),
(
_carrier.metadata.get("__settings", {}).get("carrier_name")
or "eshipper",
_carrier.metadata.get("__settings", {}),
),
)

_services = _settings.pop("services", {})
Expand Down

0 comments on commit 96b641d

Please sign in to comment.