title: Django: Messages not being displayed
body: <p>I have following function for bulk operation of the selected rows in a ListView.
  I am showing messages for success and error. </p>
  
  <pre><code>def archive_stores(view, queryset):
      if queryset.exists():
          queryset.update(archive=True)
          success_message = messages.success(view.request, 'Archived successfully.')
          return HttpResponseRedirect(reverse('stores_list', success_message))
      else: #The message is not shown when queryset of empty.
          error_message = messages.error(view.request, 'No success!.')
          return HttpResponseRedirect(reverse_lazy('stores_list', error_message))
  </code></pre>
  
  <p>The success message is being displayed correctly. But the Error message never appears. Please guide me what can be the reason?</p>
  
  <p>Following is the ListView:</p>
  
  <pre><code>@method_decorator(login_required, name='dispatch')
  class StoresListView(ActionViewMixin,ListFilteredMixin,ListView):
      template_name = 'stores_listing.html'
      model = Store
      filter_set = StoreFilter
      actions = [archive_stores, unarchive_stores, delete_stores, export_stores,]
      paginate_by = 25
  </code></pre>
  
  <p>Following is the messages template:</p>
  
  <pre><code>{% for message in messages %}
    &lt;div class="alert {{ message.tags }} alert-dismissible" role="alert"&gt;
      &lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;
        &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
      &lt;/button&gt;
      {{ message | safe }}
    &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>Thanks.</p>