I want to know how to count the number of "keys" a "keyboard"
class Key(models.Model):
name = models.CharField(max_length = 20)
class Keyboard(models.Model):
name = models.CharField(max_length = 20)
keys = models.ManyToManyField(Key)
I found a similar question but do not know if it can be modified for what I need, which is how many eleementos form a ManyToMany