You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happened when deploying my application. Syncdb/migrate on a fresh,
empty mysql DB, no code was touched.
The problem may also be in the cart code, not sure :)
Seems to me like south takes orm["shop.Product"] literally as "shop_product" not "%s_%s" % (model._meta.app_label, model._meta.model_name).
Alternative 1: Rename the default product model for shop_categories to Product and set app_label to "shop".
Alternative 2: Fix the migration in the shop to get it's model string from SHOP_PRODUCT_MODEL.
Would be easier to do NOW.
Would be less confusing for people replacing models
Noticed this issue when switching to mysql db (from sqlite)
A constraint on the shop_cartitem table results in an exception when adding a category-product to the cart.
The constraint is:
product_id from shop_cartitem should an id from shop_product.
This is not correct when using this app, because it should be an id from shop_categories_categoryproduct
(The constraint is easily adjusted manually in phpmyadmin)
The text was updated successfully, but these errors were encountered: