假设我有以下两种模式:
class A(models.Model):
name = models.CharField(max_length = 20)
type = models.CharField(max_length = 20)
class B(models.Model):
name = models.CharField(max_length = 20)
type = models.CharField(max_length = 20)
a = models.ForeinKey(A)
我想要这样的A实例:
有没有办法一次获得这样的A个实例?