浏览代码

Minor fix for searching dashboard pages

master
David Winterbottom 13 年前
父节点
当前提交
b01e9f62dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      oscar/apps/dashboard/pages/views.py

+ 1
- 1
oscar/apps/dashboard/pages/views.py 查看文件

@@ -42,7 +42,7 @@ class PageListView(ListView):
42 42
         data = self.form.cleaned_data
43 43
 
44 44
         if data['title']:
45
-            queryset = queryset.filter(title__contains=data['title'])
45
+            queryset = queryset.filter(title__icontains=data['title'])
46 46
             self.description += " with title containing '%s'" % data['title']
47 47
 
48 48
         return queryset

正在加载...
取消
保存