title: In django users should be able to see only the files which they uploaded
body: <p>I'm working on a simple django website that provides its users with the ability to upload files. Right now all the uploaded files can be seen by every authenticated user. How can I make it so that the users can only see the files which they uploaded only? My models:</p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import User
  
  class Document
  
  title = models.CharField(max_length=100)
  file = models.FileField(upload_to = 'media')
  
  def __str__(self):
      return self.title
  </code></pre>
  
  <p>I believe I need to add a ForeignKey model to my Document class to trace back the user id... Unfortunately, I didn't find a way to make it work.
  Any help appreciated. Thank you.</p>