title: Private s3 file visible to public - django
body: <p>I want to upload a file to s3 using a FileField in django but i want the file to be private. I tried creating a new field like - </p>
  
  <pre><code>class S3PrivateFileField(models.FileField):
  
  def __init__(self, verbose_name=None, name=None, upload_to='', storage=None, **kwargs):
      super(S3PrivateFileField, self).__init__(verbose_name=verbose_name,
              name=name, upload_to=upload_to, storage=storage, **kwargs)
      self.storage.default_acl = 'private'
  </code></pre>
  
  <p>When i check my s3 console, it shows that the file is private. But i am still able to download the file from admin, which is fine. I want to keep the file private from the rest of the world. Any suggestions? Thanks</p>
  
  <p>My bucket policy.</p>
  
  <pre><code>{
  "Version": "2008-10-17",
  "Statement": [
      {
          "Sid": "PublicReadForGetBucketObjects",
          "Effect": "Allow",
          "Principal": {
              "AWS": "*"
          },
          "Action": "s3:GetObject",
          "Resource": "---------------------"
      }
  ]
  </code></pre>
  
  <p>}</p>