title: request.user not working properly and can't be assigned to hidden model field
body: <p>I am making a little image sharing website which is a lot like a blog. When I try to assign form.author = request.user, it doesn't work and the form on my website returns 'this field is required' error.</p>
  
  <p>I tried even other similiar projects on github to check if the error is in the project but it seems not because I get errors there too. But the interesting part is when I try to print the request.user object it prints the object without a problem but when I try to assign it for some reason it returns null.
  Then I tried twisting the code in every possible scenario but I couldn't debug it.</p>
  
  <p>This is my models.py </p>
  
  <pre><code>class Meme(models.Model):
      title = models.CharField(max_length=100)
      author = models.ForeignKey(User, on_delete=models.CASCADE)
      meme = models.ImageField(upload_to='memes/')
  </code></pre>
  
  <p>This is my view</p>
  
  <pre><code>def upload(request):
      form = MemeUploadForm(request.POST or None)
      if request.method == 'POST':
          print(request.user)
          if form.is_valid():
              obj = form.save(commit=False)
              obj.author = request.user
              obj.save()
              redirect('blog-index')
      return render(request, 'blog/upload.html', {'form': form})
  </code></pre>
  
  <p>This is my form</p>
  
  <pre><code>class MemeUploadForm(ModelForm):
      class Meta:
          model = Meme
          fields = ['title', 'meme']
  </code></pre>
  
  <p>When I try to get the view to return the request.user it gives me Attribue error: User' object has no attribute 'get' but when I try to print the request.user object it gives prints my object perfectly like there aren't any errors.</p>