title: Django - Custom name of a flash message
body: <p>I'd like to flash a message in a template, which there is a ton of information on, but I haven't seen any way to give it a custom name, which would allow it to have the appropriate class or id for styling.  In Laravel:</p>
  
  <h3>webpage.php</h3>
  
  <pre><code>@if (session()-&gt;has('login_success'))
      &lt;div id="loginFlash"&gt;{{ session('login_success') }}&lt;/div&gt;
  @endif
  </code></pre>
  
  <p>Where <code>login_success</code> is defined before rendering the page</p>
  
  <p>So far with Django:</p>
  
  <h3>webpage.html</h3>
  
  <pre><code>{% for message in messages %}
      &lt;div id="{{ message.tags }}"&gt;
          {{ message }}
      &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>But I can't get <code>message.tags</code> to return a SINGLE custom value.  For instance:</p>
  
  <pre><code>messages.add_message(self.request, messages.INFO, self.request.user.username, 'loginFlash')
  </code></pre>
  
  <p>This returns:</p>
  
  <pre><code>&lt;div id="loginFlash info"&gt;
      username
  &lt;/div&gt;
  </code></pre>
  
  <p>How to remove the second argument?  It seems like all of the <code>message</code> methods already specify at least one tag.  Thanks so much!</p>