瀏覽代碼

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
         data = self.form.cleaned_data
42
         data = self.form.cleaned_data
43
 
43
 
44
         if data['title']:
44
         if data['title']:
45
-            queryset = queryset.filter(title__contains=data['title'])
45
+            queryset = queryset.filter(title__icontains=data['title'])
46
             self.description += " with title containing '%s'" % data['title']
46
             self.description += " with title containing '%s'" % data['title']
47
 
47
 
48
         return queryset
48
         return queryset

Loading…
取消
儲存