ManyToManyField 'products', because that field manually specifies a relationship model.
webapp.Basket.product: (fields.E304) Reverse accessor for 'Basket.product' clashes with reverse accessor for 'OrderProduct.product'.
HINT: Add or change a related_name argument to the definition for 'Basket.product' or 'OrderProduct.product'.
webapp.Basket.product: (fields.E305) Reverse query name for 'Basket.product' clashes with reverse query name for 'OrderProduct.product'.
HINT: Add or change a related_name argument to the definition for 'Basket.product' or 'OrderProduct.product'.
webapp.Order.products: (fields.E339) 'OrderProduct.order' is not a foreign key to 'Product'.
HINT: Did you mean one of the following foreign keys to 'Product': product?
webapp.Order.products: (fields.E339) 'OrderProduct.product' is not a foreign key to 'Order'.
HINT: Did you mean one of the following foreign keys to 'Order': order?
webapp.OrderProduct.product: (fields.E304) Reverse accessor for 'OrderProduct.product' clashes with reverse accessor for 'Basket.product'.
HINT: Add or change a related_name argument to the definition for 'OrderProduct.product' or 'Basket.product'.
webapp.OrderProduct.product: (fields.E305) Reverse query name for 'OrderProduct.product' clashes with reverse query name for 'Basket.product'.
HINT: Add or change a related_name argument to the definition for 'OrderProduct.product' or 'Basket.product'.
опля)
Паста существует
Обсуждают сегодня