title: Django, comments cannot get the name of the post they are on
body: <p>I'm having an issue with Python Django. It has to do with foreign keys and models. I have been told before that my questions are often incredibly mediocre, so please bear with me on this. I am trying to configure comments for a social network I'm working on and I've just got comments working, kind of. The issue is that, although I can input a comment and the database will log it and the person who wrote it, it won't log the post it is on. It always returns null. This is really the full extent of what I can say, as I REALLY don't understand what is happening. Here are a number of different code snippets and image that should hopefully be able to elaborate on the issue without requiring my interjection.</p>
  
  <p>1:
  The models of the post-app
  <a href="https://pastebin.com/XXNsCa5g" rel="nofollow noreferrer">https://pastebin.com/XXNsCa5g</a></p>
  
  <p>The important model being:</p>
  
  <pre><code>class Comment(models.Model):
  </code></pre>
  
  <p>2:
  The reply template:
  <a href="https://pastebin.com/GsLUQqYp" rel="nofollow noreferrer">https://pastebin.com/GsLUQqYp</a></p>
  
  <p>3:
  The reply view:</p>
  
  <pre><code>class PostReplyView(CreateView):
  model = models.Comment
  template_name = 'post_reply.html'
  fields = ['comment']
  
  def form_valid(self, form):
      form.instance.author = self.request.user
      return super().form_valid(form)
  </code></pre>
  
  <p>Finally, a visual representation of what is missing from a comment when it is posted: 
  <a href="https://i.stack.imgur.com/NeCen.png" rel="nofollow noreferrer">enter image description here</a></p>