I have models
class Product(models.Model):
category = models.ForeignKey(Category, on_delete=models.CASCADE, )
name = models.CharField(max_length=50')
seats = models.PositiveIntegerField()
quantity = models.PositiveIntegerField(validators=[MinValueValidator(1)])
class ReserveModel(models.Model):
products = models.ManyToManyField(Product, related_name='rented')
rent_from = models.DateField()
rent_to = models.DateField()
when I create instance of ReservetModel I have to have ability to point quantity of each selected product, how can I implement this?