Explorar el Código

Minor fix for searching dashboard pages

master
David Winterbottom hace 13 años
padre
commit
b01e9f62dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      oscar/apps/dashboard/pages/views.py

+ 1
- 1
oscar/apps/dashboard/pages/views.py Ver fichero

@@ -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…
Cancelar
Guardar