如何统计与某个类的某个对象相连的数据库Record
中某个类的对象的数量。我在.sqlite3
Subject
django-admin
class Subject(models.Model):
name = models.CharField(max_length=100)
class Record(models.Model):
subject = models.ForeignKey(Subject)
record_short_description = models.CharField(max_length=100)