<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,7 +22,7 @@ class Middleware(object):
         return None
 
     def process_response(self, request, response):
-        if len(request.flash) &gt; 0:
+        if hasattr(request, 'flash') and len(request.flash) &gt; 0:
             request.session['_flash'] = request.flash
         return response
 </diff>
      <filename>django_zsutils/utils/flash/__init__.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>13e561a513cab1cd1224de26735f02f728947a6d</id>
    </parent>
  </parents>
  <author>
    <name>Horst Gutmann</name>
    <email>zerok@zerokspot.com</email>
  </author>
  <url>http://github.com/zerok/django-zsutils/commit/41f9a879df30aa2935d53d3a02f3d807ffbeb8c2</url>
  <id>41f9a879df30aa2935d53d3a02f3d807ffbeb8c2</id>
  <committed-date>2008-10-27T14:39:55-07:00</committed-date>
  <authored-date>2008-10-27T14:39:55-07:00</authored-date>
  <message>Fixed a small request-redirect-problem with flash messages

If automatic redirection happens (for example thanks to append-slash) the
request-processing chain is broken and so request.flash is never generated. So
let's make this optional :-)</message>
  <tree>9b4749772862be79e849dbbda9dba401ce03131f</tree>
  <committer>
    <name>Horst Gutmann</name>
    <email>zerok@zerokspot.com</email>
  </committer>
</commit>
