Sfoglia il codice sorgente

Minor fix for searching dashboard pages

master
David Winterbottom 13 anni fa
parent
commit
b01e9f62dc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      oscar/apps/dashboard/pages/views.py

+ 1
- 1
oscar/apps/dashboard/pages/views.py Vedi File

@@ -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…
Annulla
Salva