Reputation: 838
Suppose I have the following two models:
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)
I want such A instances:
Is there a way to get such A instances at one time?
Upvotes: 0
Views: 29