具有价值的 Django manytomany

Django manytomany with value

来源示例:

class Amenities(models.Model):
    title = models.CharField("Title", max_length=300)
    value = models.BooleanField("Bool",default=False)

    class Meta:
        db_table = "amenities"

    def __str__(self):
        return self.title

class Property(models.Model):     
    title = models.CharField("Name category", max_length=300)
    amenities = models.ManyToManyField(Amenities)

我想创建一个 Aminities 列表。将便利设施 table 与租金 table 合并,并为每一行添加一个值。

如图所示

我只需要: https://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany 简单的解决方案。