Преглед изворни кода

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

Loading…
Откажи
Сачувај