When you try to display a field in a template, the necessary information is not displayed. Models:
class Comment(models.Model): text = models.TextField() published_date = models.DateTimeField( blank=True, null=True) post = models.ForeignKey('Post') author = models.ForeignKey('auth.User') class Post(models.Model): author = models.ForeignKey('auth.User') title = models.CharField(max_length=200) text = models.TextField() Part of the post-class post-object templat. Added Comment to this object in the admin panel
<div class="comment"><h1>{{ post.comment.text}}</h1></div>