ИМ
Size: a a a
ИМ
S
Р
class City (models.Model):
name = models.CharField ()
class Person (models.Model):
name = models.CharField ()
city = models.ForeignKey (City)
queryset = City.objects.annotate(population=Count('person')).order_by('-population')[:5]
ИМ
ИМ
S
S
ИМ
Z
H
ИМ
U
F
S
F
HA
ИМ
S
ИМ