I re-read Django’s documentation and can’t solve the problem.
For example, there are two models Cart and Products :
class Cart(models.Model): cartnumber = models.CharField() products = models.ManyToManyField(Products) total = DecimalField() class Products(models.Model): name = CharField() price = DecimalField() Everything communicates well, everything is fine in the admin area too, but the task is different. As I understand it, a ManyToMany creates an intermediate table with the id of the Cart and Products tables. But I need that in this intermediate table there were more fields, for example the volume of the product ordered, its amount. I do not understand how to organize this business. Maybe I misunderstand the point? Tell me good people, how can I properly organize the work of a basket with several goods?