一个ManyToMany字段可以包含2个表吗?我想实现这样的name_b = ManyToManyField("A, B", related_name="+", blank=True)
class A(models.Model):
name = models.CharField(max_length=50, blank=True, default="")
add_time = models.DateTimeField(auto_now=True)
class B(models.Model):
name = models.CharField(max_length=50)
add_time = models.DBateTimeField(auto_now=True)
class C(models.Model):
name = models.CharField(max_length=50)
name_b = ManyToManyField(???"A, B"???, related_name="+", blank=True)
add_time = models.DateTimeField(auto_now=True)
有可能吗?非常感谢您的任何建议。