0
これは、私が働いているモデルである:私は私が得る、この変更を行った後Cart
今すぐitems = models.ManyToManyField(CartItem)
ManyToManyFieldのValueError |ジャンゴ
ているモデルでitems
フィールドで、前に一度makemigrations
とmigrate
を実行していた
次のエラー:
ValueError: Cannot alter field carts.Cart.items into carts.Cart.items - they are not compatible types (you cannot alter to or from M2M fields, or add or remove through= on M2M fields)
どうすればこの問題を解決できますか?助けてください。
ありがとう、それは働いた:) –