title: Django order of message tags
body: <p>I wonder if it is possible to change the order of the message tags of a django message with extra tags.</p>
  
  <pre><code>from django.contrib import messages
  messages.success(request, 'success message', extra_tags='safe')
  </code></pre>
  
  <p>And in my template I use</p>
  
  <pre><code>{% if messages %}
    {% for message in messages %}
      &lt;div class="alert alert-{{ message.tags }}"&gt;
       {% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %}
      &lt;/div&gt;
    {% endfor %}
  {% endif %}
  </code></pre>
  
  <p>With this the class of the div will be:</p>
  
  <pre><code>&lt;div class="alert alert-safe success"&gt;
  </code></pre>
  
  <p>but I want to have the two tags switched, so that I can use the bootstrap class. </p>
  
  <pre><code>&lt;div class="alert alert-success safe"&gt;
  </code></pre>
  
  <p>Is this possible?</p>