I have a queryset in Django that calls Model.objects.values('item')
... where 'item'
is a Foreign Key.
class Words(models.Model):
word = models.CharField()
class Frequency(models.Model):
word = models.ForeignKey(Words)
...
So this returns the item id and displays as an id in the template. How do I show the actual item value in the template instead of the id?