DT
Size: a a a
DT
A
DT
DT
МП
class StudentGroup(Group):
teacher = models.ForeignKey()
StudentProfile.objects.filter(```
user__groups__teacher__id=1
).count()
A
DT
МП
class StudentGroup(Group):Вопрос в том как отфильтровать всех учеников учителя?
teacher = models.ForeignKey()
class StudentProfile(models.Model):
user = models.OneToOneField()
МП
МП
DT
DT
МП
DT
МП
DT
МП
DT
МП