Skip to content

Commit

Permalink
fix: Replace . in module names in RelationalBones with / -- seems
Browse files Browse the repository at this point in the history
to work better with the vi-admin
  • Loading branch information
sveneberth committed Mar 19, 2024
1 parent 6c84fd8 commit d689e3a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/viur/shop/skeletons/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)

cloned_from = RelationalBone(
kind="shop_address",
module="shop.address",
module="shop/address",
readOnly=True, # set by the system
consistency=RelationalConsistency.Ignore,
)
4 changes: 2 additions & 2 deletions src/viur/shop/skeletons/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ class CartItemSkel(TreeSkel): # STATE: Complete (as in model)

shop_vat = RelationalBone(
kind="shop_vat",
module="shop.vat",
module="shop/vat",
refKeys=["key", "name", "rate"],
consistency=RelationalConsistency.PreventDeletion,
)

shop_shipping = RelationalBone(
kind="shop_shipping_config",
module="shop.shipping_config",
module="shop/shipping_config",
consistency=RelationalConsistency.SetNull,
)

Expand Down
2 changes: 1 addition & 1 deletion src/viur/shop/skeletons/discount_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class DiscountConditionSkel(Skeleton): # STATE: Complete (as in model)

parent_code = RelationalBone(
kind="shop_discount_condition",
module="shop.discount_condition",
module="shop/discount_condition",
consistency=RelationalConsistency.PreventDeletion,
params={
"category": "2 – Scope",
Expand Down
4 changes: 2 additions & 2 deletions src/viur/shop/skeletons/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OrderSkel(Skeleton): # STATE: Complete (as in model)

billing_address = RelationalBone(
kind="shop_address",
module="shop.address",
module="shop/address",
refKeys=[
"key", "name", "customer_type", "salutation", "company_name",
"firstname", "lastname", "street_name", "street_number",
Expand All @@ -36,7 +36,7 @@ class OrderSkel(Skeleton): # STATE: Complete (as in model)

cart = RelationalBone(
kind="shop_cart_node",
module="shop.cart_node",
module="shop/cart_node",
refKeys=["key", "name", "shipping_address"],
)

Expand Down
2 changes: 1 addition & 1 deletion src/viur/shop/skeletons/shipping_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ShippingConfigSkel(Skeleton): # STATE: Complete (as in model)

shipping_skel = RelationalBone(
kind="shop_shipping",
module="shop.shipping",
module="shop/shipping",
using=ShippingPreconditionRelSkel,
multiple=True,
)

0 comments on commit d689e3a

Please sign in to comment.