]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/views/__init__.py
[views] Fix empty bundle showing entire project's patches
[patchwork] / apps / patchwork / views / __init__.py
index 16a84cc23ebe6a12fcefe86bff17d4592d8a7470..4aadce4ac1a8a7d5a311e06cfc0673799db42631 100644 (file)
@@ -71,7 +71,7 @@ def generic_list(request, project, view,
         else:
             context.filters.set_status(filterclass, setting)
 
-    if not patches:
+    if patches is None:
         patches = Patch.objects.filter(project=project)
 
     patches = context.filters.apply(patches)