title: how to update request.user in django?
body: <p>I have an ajax call which sets 
  <code>request.user.my_field = value</code></p>
  
  <p>When the ajax succeeds, I reload the page with <code>location.reload(True)</code>
  I expect the <code>request.user.my_field</code> in the view function is updated now but it has the old value.  </p>
  
  <p>How can I fix this?</p>
  
  <p>EDIT</p>
  
  <p>The ajax call:</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      url: '{% url editor_select %}',
      data: {'editor_type':$(this).val(),
             success: function(response_data) {                                                                                                                                                                                                                   
                 location.reload(true);                                                                                                                                                                                                                           
             }                                                                                                                                                                                                                                                    
            }                                                                                                                                                                                                                                                     
  });     
  </code></pre>
  
  <p>The first view:</p>
  
  <pre><code>def editor_select(request):
      """                                                                                                                                                                                                                                                                         
      called when user changes editor type to post question/answer                                                                                                                                                                                                                
      """
  
      editor_type = CharField().clean(request.POST['editor_type'])
      request.user.editor_type = editor_type
      request.user.save()
  </code></pre>
  
  <p>The second view:</p>
  
  <pre><code>def second_view(request):
      print 'ask, editor_type:', request.user.editor_type
  </code></pre>
  
  <p>I find AuthenticationMiddleware (which sets request.user to request), doesn't get called in between the ajax call and the location.reload()  </p>
  
  <p>so umm???</p>