title: Django Login Message with LoginView
body: <p>I am a bit confused on why my LoginView message is not pulling the users login name. I have tried a few different ways and it either will say 'Welcome Anonymous User' or 'Welcome' (not adding anything). I have tried a few different methods and the results are the same each way I try to solve it. My code is as follows:</p>
  <pre><code>class MyLoginView(LoginView):
      template_name = 'registration/login.html'
  
      success_message = 'Welcome'
      
      def form_valid(self, form):
          &quot;&quot;&quot;Add message here&quot;&quot;&quot;
          messages.add_message(self.request, messages.INFO, f&quot;{self.success_message} {self.request.user}&quot;)
          return super().form_valid(form)
  
  </code></pre>
  <p>This one will say 'Welcome AnonymousUser', if I change the code to {self.request.user.username} it just will say 'Welcome'</p>
  <p>also have tried</p>
  <pre><code>class MyLoginView(LoginView):
      template_name = 'registration/login.html'
  
      def form_valid(self, form):
          messages.success(self.request, f'Welcome {self.request.user}')
          return super().form_valid(form)
  </code></pre>
  <p>This one will flash the message of 'Welcome Anonymous User'. If I change the code to f'Welcome {self.request.user.username}' then the message displayed is just 'Welcome'</p>
  <p>I am not really sure why these aren't working so any help would be greatly appreciated</p>