I have a model like:
class Question(models.Model):
...
class Answer(models.Model):
question = models.ForeignKey(
Question, null=False, blank=False, on_delete=models.CASCADE,
related_name='answers',
verbose_name='translated name'
)
I would now like to use the verbose_name
in a template (as it is translated) over the reverse relation like
{{ question.answers.verbose_name }}
. Unfortunately this does not work.
On the other hand {{ question.answers.related_name }}
works.
So it seems that in the reverse_relation only the related_name
is available.
Is there any way to get the verbose_name
from the reverse relation?