Browse Source

search/views.py: add case-sensitive search by base64 hash

pull/1/head
Hidden Z 14 years ago
parent
commit
59beb95606
  1. 2
      pyi2phosts/search/views.py

2
pyi2phosts/search/views.py

@ -7,7 +7,7 @@ from pyi2phosts.postkey.models import i2phost @@ -7,7 +7,7 @@ from pyi2phosts.postkey.models import i2phost
def search(request):
q = request.GET.get('q', '')
fil = Q(name__icontains=q)
fil = Q(name__icontains=q) | Q(b64hash__contains=q)
qs = i2phost.objects.filter(fil)
return list_detail.object_list(
request = request,

Loading…
Cancel
Save